Skip to content

Files

Latest commit

7c95781 · Mar 20, 2023

History

History
15 lines (11 loc) · 384 Bytes

README.md

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