Skip to content

Commit

Permalink
docs: add link to pgx sample for PGAdapter (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite authored Feb 5, 2024
1 parent e3e2a9a commit e9f8e90
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,14 @@ $ export SPANNER_EMULATOR_HOST=localhost:9010
## Spanner PostgreSQL Interface

This driver works specifically with the Spanner GoogleSQL dialect. For the
Spanner PostgreSQL dialect, Go's
[database/sql](https://golang.org/pkg/database/sql/) package can be used
directly after setting up the
Spanner PostgreSQL dialect, any PostgreSQL driver that implements the
[database/sql](https://golang.org/pkg/database/sql/) interface can be used
in combination with
[PGAdapter](https://cloud.google.com/spanner/docs/pgadapter).

For example, the [pgx](https://github.com/jackc/pgx) driver can be used in combination with
PGAdapter: https://github.com/GoogleCloudPlatform/pgadapter/blob/postgresql-dialect/docs/pgx.md

## Troubleshooting

The driver will retry any Aborted error that is returned by Cloud Spanner
Expand Down

0 comments on commit e9f8e90

Please sign in to comment.