Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 384 Bytes

File metadata and controls

15 lines (11 loc) · 384 Bytes

pgx sample

This sample application shows how to connect to Cloud Spanner through PGAdapter using the standard pgx PostgreSQL driver. PGAdapter is automatically started in a Docker container by the sample application.

Run the sample with the following command:

go run pgx_sample.go \
    -project=my-project \
    -instance=my-instance \
    -database=my-database