Get PGAdapter
Stay organized with collections
Save and categorize content based on your preferences.
This page explains how to get the PGAdapter binary.
To run PGAdapter standalone in the JVM, download the latest jar
file
and a new lib
directory that contains the required dependencies.
wget https://storage.googleapis.com/pgadapter-jar-releases/pgadapter.tar.gz \
&& tar -xzvf pgadapter.tar.gz
To run PGAdapter in a Docker container, get the latest version
by executing the following command:
docker pull gcr.io/cloud-spanner-pg-adapter/pgadapter
Get 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 process:
Add google-cloud-spanner-pgadapter
as a dependency to your project by adding
the following code to your pom.xml
file:
What's next
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2024-09-06 UTC.",
"confidential": False
}