PGAdapter を取得する
このページでは、PGAdapter バイナリを取得する方法について説明します。
JVM で PGAdapter をスタンドアロンで実行するには、最新の jar ファイルをダウンロードします。
https://storage.googleapis.com/pgadapter-jar-releases/pgadapter.jar
以前のバージョンを追加して jar の以前のバージョンをダウンロードすることもできます。
https://storage.googleapis.com/pgadapter-jar-releases/pgadapter.jar-v<version_number>
Docker コンテナで PGAdapter を実行するには、次のコマンドを実行して最新バージョンを取得します。
docker pull gcr.io/cloud-spanner-pg-adapter/pgadapter
以前のバージョンをタグとして追加することで、以前のバージョンを取得します。
docker pull gcr.io/cloud-spanner-pg-adapter/pgadapter:v<version-number>
PGAdapter をプロセスで使用するには:
次のコードを pom.xml
ファイルに追加して、google-cloud-spanner-pgadapter
を依存関係としてプロジェクトに追加します。
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-spanner-pgadapter</artifactId>
<version>0.3.0</version>
</dependency>
次のステップ
PGAdapter を起動する
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 2022-04-17 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"わかりにくい"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"情報またはサンプルコードが不正確"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"必要な情報 / サンプルがない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]