PostgreSQLのインテグレーション
PostgreSQLをRetoolに接続します。
1. PostgreSQLの情報の取得とRetool IPアドレスのホワイトリスト登録
データベースの接続情報を、データベースを設定した人から入手してください。この情報は、Retool IPアドレス52.175.251.223
をホワイトリストに登録する際にも必要になります。
2. Retoolへの追加
Retoolで新規リソースを作成し、typeで「Postgres」を選択します。
![postgres-create-resource.png 3200](https://files.readme.io/85d27ab-postgres-create-resource.png)
データベースの接続情報を入力します。
![postgres-edit-details.png 3200](https://files.readme.io/5aa78cb-postgres-edit-details.png)
3. クエリーの作成
これで、Retoolアプリケーション内でクエリーを作成するときに、新規作成したPostgreSQLのリソースをSelect Resourceドロップダウンから選択できるようになりました。生SQL文用のSQL modeと構造化書き込み用のGUI modeは切り替えることができます。
![postgres-query-editor.png 3200](https://files.readme.io/dda1caf-postgres-query-editor.png)
PostgreSQLのクエリーの結果は、Retoolの他のクエリーの場合と同様に表示させることができます。
![postgres-display-results.png 3200](https://files.readme.io/69831e0-postgres-display-results.png)
Updated about 4 years ago