This page explains how to get the PGAdapter binary. PGAdapter is used with PostgreSQL-dialect databases.
To run the PGAdapter standalone in the JVM, download the latest
jarfile and a newlibdirectory that contains the required dependencies.wget https://storage.googleapis.com/pgadapter-jar-releases/pgadapter.tar.gz \ && tar -xzvf pgadapter.tar.gzTo run PGAdapter in a Docker container, get the latest version by executing the following command:
docker pull gcr.io/cloud-spanner-pg-adapter/pgadapterGet a previous version by appending the version as a tag.
docker pull gcr.io/cloud-spanner-pg-adapter/pgadapter:v<version-number>To use PGAdapter in a process:
Add
google-cloud-spanner-pgadapteras a dependency to your project by adding the following code to yourpom.xmlfile:
What's next
- Learn how to Start PGAdapter.