# Google Cloud SQL for PostgreSQLにアクセス

このシナリオのジョブは、tPostgresqlOutputコンポーネントとtPostgresqlInputコンポーネントを使ってGoogle Cloud SQL for PostgreSQLにアクセスする方法を示します。Google Cloud SQL for PostgreSQLの詳細は、[Using Cloud SQL for PostgreSQL](https://cloud.google.com/sql/docs/postgres)をご覧ください。

このシナリオでは以下の操作が行われます。

* tDBConnection\_1は、Google Cloud SQL for PostgreSQLインスタンスへの接続を確立します。
* サブジョブ1は、Google Cloud SQL for PostgreSQLインスタンス上のデータベーステーブルにデータを書き込みます。
* サブジョブ2は、データベーステーブルからデータを取得し、コンソールにデータを表示させます。

![](https://help.qlik.com/talend/ja-JP/components/8.0/Resources/images/use-case-postgresql-1.png)

以下は、Google Cloud SQL for PostgreSQLインスタンスに書き込むデータのリストです。

```
1;Griffith Paving and Sealcoatin;talend@apres91
2;Bill's Dive Shop;511 Maple Ave.  Apt. 1B
3;Childress Child Day Care;662 Lyons Circle
4;Facelift Kitchen and Bath;220 Vine Ave.
5;Terrinni & Son Auto and Truck;770 Exmoor Rd.
6;Kermit the Pet Shop;1860 Parkside Ln.
7;Tub's Furniture Store;807 Old Trail Rd.
8;Toggle & Myerson Ltd;618 Sheriden rd.
```

### このセクション内

* [ジョブを作成](https://help.qlik.com/talend/ja-JP/components/8.0/postgresql/creating-job-postgresql?id=3855)
* [tDBConnection_1コンポーネントを設定](https://help.qlik.com/talend/ja-JP/components/8.0/postgresql/accessing-a-postgresql-database-tpostgresqlconnection?id=3856)
* [tFixedFlowInput_1コンポーネントを設定](https://help.qlik.com/talend/ja-JP/components/8.0/postgresql/accessing-a-postgresql-database-tfixedflowinput?id=3857)
* [tDBOutput_1コンポーネントを設定](https://help.qlik.com/talend/ja-JP/components/8.0/postgresql/accessing-a-postgresql-database-tpostgresqloutput?id=3858)
* [tDBInput_1コンポーネントを設定](https://help.qlik.com/talend/ja-JP/components/8.0/postgresql/accessing-a-postgresql-database-tpostgresqlinput?id=3859)
* [tLogRow_1コンポーネントを設定](https://help.qlik.com/talend/ja-JP/components/8.0/postgresql/accessing-a-postgresql-database-tlogrow?id=3860)
* [ジョブを実行](https://help.qlik.com/talend/ja-JP/components/8.0/postgresql/accessing-a-postgresql-database-executing-job?id=3861)

**関連情報**

[tFixedFlowInput](https://help.qlik.com/talend/ja-JP/components/8.0/tfixedflowinput/tfixedflowinput)

[tLogRow](https://help.qlik.com/talend/ja-JP/components/8.0/logs-and-errors/tlogrow)