> For the complete documentation index, see [llms.txt](https://docs.selfuel.digital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.selfuel.digital/data-integration-with-nexus/nexus-elements/connectors/sink/jdbc.md).

# JDBC

> JDBC sink connector

### Description[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#description) <a href="#description" id="description"></a>

Write data through jdbc. Support Batch mode and Streaming mode, support concurrent writing, support exactly-once semantics (using XA transaction guarantee).

### Key Features[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#key-features) <a href="#key-features" id="key-features"></a>

* [x] &#x20;exactly-once

Use `Xa transactions` to ensure `exactly-once`. So only support `exactly-once` for the database which is support `Xa transactions`. You can set `is_exactly_once=true` to enable it.

* [x] &#x20;cdc
* [x] &#x20;support multiple table write

### Options[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#options) <a href="#options" id="options"></a>

| Name                                            | Type    | Required | Default                          |
| ----------------------------------------------- | ------- | -------- | -------------------------------- |
| url                                             | String  | Yes      | -                                |
| driver                                          | String  | Yes      | -                                |
| user                                            | String  | No       | -                                |
| password                                        | String  | No       | -                                |
| query                                           | String  | No       | -                                |
| compatible\_mode                                | String  | No       | -                                |
| database                                        | String  | No       | -                                |
| table                                           | String  | No       | -                                |
| primary\_keys                                   | Array   | No       | -                                |
| support\_upsert\_by\_query\_primary\_key\_exist | Boolean | No       | false                            |
| connection\_check\_timeout\_sec                 | Int     | No       | 30                               |
| max\_retries                                    | Int     | No       | 0                                |
| batch\_size                                     | Int     | No       | 1000                             |
| is\_exactly\_once                               | Boolean | No       | false                            |
| generate\_sink\_sql                             | Boolean | No       | false                            |
| xa\_data\_source\_class\_name                   | String  | No       | -                                |
| max\_commit\_attempts                           | Int     | No       | 3                                |
| transaction\_timeout\_sec                       | Int     | No       | -1                               |
| auto\_commit                                    | Boolean | No       | true                             |
| field\_ide                                      | String  | No       | -                                |
| properties                                      | Map     | No       | -                                |
| common-options                                  |         | No       | -                                |
| schema\_save\_mode                              | Enum    | No       | CREATE\_SCHEMA\_WHEN\_NOT\_EXIST |
| data\_save\_mode                                | Enum    | No       | APPEND\_DATA                     |
| custom\_sql                                     | String  | No       | -                                |
| enable\_upsert                                  | Boolean | No       | true                             |
| use\_copy\_statement                            | Boolean | No       | false                            |
| create\_index                                   | Boolean | No       | true                             |

#### driver \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#driver-string) <a href="#driver-string" id="driver-string"></a>

The jdbc class name used to connect to the remote data source, if you use MySQL the value is `com.mysql.cj.jdbc.Driver`.

#### user \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#user-string) <a href="#user-string" id="user-string"></a>

userName

#### password \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#password-string) <a href="#password-string" id="password-string"></a>

password

#### url \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#url-string) <a href="#url-string" id="url-string"></a>

The URL of the JDBC connection. Refer to a case: jdbc:postgresql://localhost/test

#### query \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#query-string) <a href="#query-string" id="query-string"></a>

Use this sql write upstream input datas to database. e.g `INSERT ...`

#### compatible\_mode \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#compatible_mode-string) <a href="#compatible_mode-string" id="compatible_mode-string"></a>

The compatible mode of database, required when the database supports multiple compatible modes. For example, when using OceanBase database, you need to set it to 'mysql' or 'oracle'.

Postgres 9.5 version or below,please set it to `postgresLow` to support cdc

#### database \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#database-string) <a href="#database-string" id="database-string"></a>

Use this `database` and `table-name` auto-generate sql and receive upstream input datas write to database.

This option is mutually exclusive with `query` and has a higher priority.

#### table \[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#table-string) <a href="#table-string" id="table-string"></a>

Use `database` and this `table-name` auto-generate sql and receive upstream input datas write to database.

This option is mutually exclusive with `query` and has a higher priority.

The table parameter can fill in the name of an unwilling table, which will eventually be used as the table name of the creation table, and supports variables (`${table_name}`, `${schema_name}`). Replacement rules: `${schema_name}` will replace the SCHEMA name passed to the target side, and `${table_name}` will replace the name of the table passed to the table at the target side.

mysql sink for example:

1. tes&#x74;*${schema\_name}*${table\_name}\_test
2. sink\_sinktable
3. ss\_${table\_name}

pgsql (Oracle Sqlserver ...) Sink for example:

1. ${schema\_name}.${table\_name} \_test
2. dbo.tt\_${table\_name} \_sink
3. public.sink\_table

Tip: If the target database has the concept of SCHEMA, the table parameter must be written as `xxx.xxx`

#### primary\_keys \[array][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#primary_keys-array) <a href="#primary_keys-array" id="primary_keys-array"></a>

This option is used to support operations such as `insert`, `delete`, and `update` when automatically generate sql.

#### support\_upsert\_by\_query\_primary\_key\_exist \[boolean][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#support_upsert_by_query_primary_key_exist-boolean) <a href="#support_upsert_by_query_primary_key_exist-boolean" id="support_upsert_by_query_primary_key_exist-boolean"></a>

Choose to use INSERT sql, UPDATE sql to process update events(INSERT, UPDATE\_AFTER) based on query primary key exists. This configuration is only used when database unsupported upsert syntax. **Note**: that this method has low performance

#### connection\_check\_timeout\_sec \[int][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#connection_check_timeout_sec-int) <a href="#connection_check_timeout_sec-int" id="connection_check_timeout_sec-int"></a>

The time in seconds to wait for the database operation used to validate the connection to complete.

#### max\_retries\[int][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#max_retriesint) <a href="#max_retriesint" id="max_retriesint"></a>

The number of retries to submit failed (executeBatch)

#### batch\_size\[int][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#batch_sizeint) <a href="#batch_sizeint" id="batch_sizeint"></a>

For batch writing, when the number of buffered records reaches the number of `batch_size` or the time reaches `checkpoint.interval` , the data will be flushed into the database

#### is\_exactly\_once\[boolean][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#is_exactly_onceboolean) <a href="#is_exactly_onceboolean" id="is_exactly_onceboolean"></a>

Whether to enable exactly-once semantics, which will use Xa transactions. If on, you need to set `xa_data_source_class_name`.

#### generate\_sink\_sql\[boolean][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#generate_sink_sqlboolean) <a href="#generate_sink_sqlboolean" id="generate_sink_sqlboolean"></a>

Generate sql statements based on the database table you want to write to

#### xa\_data\_source\_class\_name\[string][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#xa_data_source_class_namestring) <a href="#xa_data_source_class_namestring" id="xa_data_source_class_namestring"></a>

The xa data source class name of the database Driver, for example, mysql is `com.mysql.cj.jdbc.MysqlXADataSource`, and please refer to appendix for other data sources

#### max\_commit\_attempts\[int][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#max_commit_attemptsint) <a href="#max_commit_attemptsint" id="max_commit_attemptsint"></a>

The number of retries for transaction commit failures

#### transaction\_timeout\_sec\[int][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#transaction_timeout_secint) <a href="#transaction_timeout_secint" id="transaction_timeout_secint"></a>

The timeout after the transaction is opened, the default is -1 (never timeout). Note that setting the timeout may affect exactly-once semantics

#### auto\_commit \[boolean][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#auto_commit-boolean) <a href="#auto_commit-boolean" id="auto_commit-boolean"></a>

Automatic transaction commit is enabled by default

#### field\_ide \[String][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#field_ide-string) <a href="#field_ide-string" id="field_ide-string"></a>

The field "field\_ide" is used to identify whether the field needs to be converted to uppercase or lowercase when synchronizing from the source to the sink. "ORIGINAL" indicates no conversion is needed, "UPPERCASE" indicates conversion to uppercase, and "LOWERCASE" indicates conversion to lowercase.

#### properties[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#properties) <a href="#properties" id="properties"></a>

Additional connection configuration parameters,when properties and URL have the same parameters, the priority is determined by the\
specific implementation of the driver. For example, in MySQL, properties take precedence over the URL.

#### common options[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#common-options) <a href="#common-options" id="common-options"></a>

Sink plugin common parameters, please refer to [Sink Common Options](/data-integration-with-nexus/nexus-elements/connectors/sink/sink-common-options.md) for details

#### schema\_save\_mode \[Enum][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#schema_save_mode-enum) <a href="#schema_save_mode-enum" id="schema_save_mode-enum"></a>

Before the synchronous task is turned on, different treatment schemes are selected for the existing surface structure of the target side.\
Option introduction：\
`RECREATE_SCHEMA` ：Will create when the table does not exist, delete and rebuild when the table is saved\
`CREATE_SCHEMA_WHEN_NOT_EXIST` ：Will Created when the table does not exist, skipped when the table is saved\
`ERROR_WHEN_SCHEMA_NOT_EXIST` ：Error will be reported when the table does not exist

#### data\_save\_mode \[Enum][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#data_save_mode-enum) <a href="#data_save_mode-enum" id="data_save_mode-enum"></a>

Before the synchronous task is turned on, different processing schemes are selected for data existing data on the target side.\
Option introduction：\
`DROP_DATA`： Preserve database structure and delete data\
`APPEND_DATA`：Preserve database structure, preserve data\
`CUSTOM_PROCESSING`：User defined processing\
`ERROR_WHEN_DATA_EXISTS`：When there is data, an error is reported

#### custom\_sql \[String][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#custom_sql-string) <a href="#custom_sql-string" id="custom_sql-string"></a>

When data\_save\_mode selects CUSTOM\_PROCESSING, you should fill in the CUSTOM\_SQL parameter. This parameter usually fills in a SQL that can be executed. SQL will be executed before synchronization tasks.

#### enable\_upsert \[boolean][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#enable_upsert-boolean) <a href="#enable_upsert-boolean" id="enable_upsert-boolean"></a>

Enable upsert by primary\_keys exist, If the task has no key duplicate data, setting this parameter to `false` can speed up data import

#### use\_copy\_statement \[boolean][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#use_copy_statement-boolean) <a href="#use_copy_statement-boolean" id="use_copy_statement-boolean"></a>

Use `COPY ${table} FROM STDIN` statement to import data. Only drivers with `getCopyAPI()` method connections are supported. e.g.: Postgresql driver `org.postgresql.Driver`.

NOTICE: `MAP`, `ARRAY`, `ROW` types are not supported.

#### create\_index \[boolean][​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#create_index-boolean) <a href="#create_index-boolean" id="create_index-boolean"></a>

Create the index(contains primary key and any other indexes) or not when auto-create table. You can use this option to improve the performance of jdbc writes when migrating large tables.

Notice: Note that this will sacrifice read performance, so you'll need to manually create indexes after the table migration to improve read performance

### tips[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#tips) <a href="#tips" id="tips"></a>

In the case of is\_exactly\_once = "true", Xa transactions are used. This requires database support, and some databases require some setup : 1 postgres needs to set `max_prepared_transactions > 1` such as `ALTER SYSTEM set max_prepared_transactions to 10`. 2 mysql version need >= `8.0.29` and Non-root users need to grant `XA_RECOVER_ADMIN` permissions. such as `grant XA_RECOVER_ADMIN on test_db.* to 'user1'@'%'`. 3 mysql can try to add `rewriteBatchedStatements=true` parameter in url for better performance.

### appendix[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#appendix) <a href="#appendix" id="appendix"></a>

there are some reference value for params above.

| datasource        | driver                                       | url                                                                                                                                                                                                       | xa\_data\_source\_class\_name                      | maven                                                                                                                           |
| ----------------- | -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| MySQL             | com.mysql.cj.jdbc.Driver                     | jdbc:mysql://localhost:3306/test                                                                                                                                                                          | com.mysql.cj.jdbc.MysqlXADataSource                | <https://mvnrepository.com/artifact/mysql/mysql-connector-java>                                                                 |
| PostgreSQL        | org.postgresql.Driver                        | jdbc:postgresql://localhost:5432/postgres                                                                                                                                                                 | org.postgresql.xa.PGXADataSource                   | <https://mvnrepository.com/artifact/org.postgresql/postgresql>                                                                  |
| DM                | dm.jdbc.driver.DmDriver                      | jdbc:dm://localhost:5236                                                                                                                                                                                  | dm.jdbc.driver.DmdbXADataSource                    | <https://mvnrepository.com/artifact/com.dameng/DmJdbcDriver18>                                                                  |
| Phoenix           | org.apache.phoenix.queryserver.client.Driver | jdbc:phoenix:thin:url=[http://localhost:8765;serialization=PROTOBUF](https://docs.selfuel.digital/data-integration-with-nexus/nexus-elements/connectors/sink/http:/localhost:8765;serialization=PROTOBUF) | /                                                  | <https://mvnrepository.com/artifact/com.aliyun.phoenix/ali-phoenix-shaded-thin-client>                                          |
| SQL Server        | com.microsoft.sqlserver.jdbc.SQLServerDriver | jdbc:sqlserver://localhost:1433                                                                                                                                                                           | com.microsoft.sqlserver.jdbc.SQLServerXADataSource | <https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc>                                                         |
| Oracle            | oracle.jdbc.OracleDriver                     | jdbc:oracle:thin:@localhost:1521/xepdb1                                                                                                                                                                   | oracle.jdbc.xa.OracleXADataSource                  | <https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc8>                                                            |
| sqlite            | org.sqlite.JDBC                              | jdbc:sqlite:test.db                                                                                                                                                                                       | /                                                  | <https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc>                                                                     |
| GBase8a           | com.gbase.jdbc.Driver                        | jdbc:gbase://e2e\_gbase8aDb:5258/test                                                                                                                                                                     | /                                                  | <https://www.gbase8.cn/wp-content/uploads/2020/10/gbase-connector-java-8.3.81.53-build55.5.7-bin_min_mix.jar>                   |
| StarRocks         | com.mysql.cj.jdbc.Driver                     | jdbc:mysql://localhost:3306/test                                                                                                                                                                          | /                                                  | <https://mvnrepository.com/artifact/mysql/mysql-connector-java>                                                                 |
| db2               | com.ibm.db2.jcc.DB2Driver                    | jdbc:db2://localhost:50000/testdb                                                                                                                                                                         | com.ibm.db2.jcc.DB2XADataSource                    | <https://mvnrepository.com/artifact/com.ibm.db2.jcc/db2jcc/db2jcc4>                                                             |
| saphana           | com.sap.db.jdbc.Driver                       | jdbc:sap\://localhost:39015                                                                                                                                                                               | /                                                  | <https://mvnrepository.com/artifact/com.sap.cloud.db.jdbc/ngdbc>                                                                |
| Doris             | com.mysql.cj.jdbc.Driver                     | jdbc:mysql://localhost:3306/test                                                                                                                                                                          | /                                                  | <https://mvnrepository.com/artifact/mysql/mysql-connector-java>                                                                 |
| teradata          | com.teradata.jdbc.TeraDriver                 | jdbc:teradata://localhost/DBS\_PORT=1025,DATABASE=test                                                                                                                                                    | /                                                  | <https://mvnrepository.com/artifact/com.teradata.jdbc/terajdbc>                                                                 |
| Redshift          | com.amazon.redshift.jdbc42.Driver            | jdbc:redshift://localhost:5439/testdb                                                                                                                                                                     | com.amazon.redshift.xa.RedshiftXADataSource        | <https://mvnrepository.com/artifact/com.amazon.redshift/redshift-jdbc42>                                                        |
| Snowflake         | net.snowflake.client.jdbc.SnowflakeDriver    | jdbc:snowflake://\<account\_name>.snowflakecomputing.com                                                                                                                                                  | /                                                  | <https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc>                                                               |
| Vertica           | com.vertica.jdbc.Driver                      | jdbc:vertica://localhost:5433                                                                                                                                                                             | /                                                  | <https://repo1.maven.org/maven2/com/vertica/jdbc/vertica-jdbc/12.0.3-0/vertica-jdbc-12.0.3-0.jar>                               |
| Kingbase          | com.kingbase8.Driver                         | jdbc:kingbase8://localhost:54321/db\_test                                                                                                                                                                 | /                                                  | <https://repo1.maven.org/maven2/cn/com/kingbase/kingbase8/8.6.0/kingbase8-8.6.0.jar>                                            |
| OceanBase         | com.oceanbase.jdbc.Driver                    | jdbc:oceanbase://localhost:2881                                                                                                                                                                           | /                                                  | <https://repo1.maven.org/maven2/com/oceanbase/oceanbase-client/2.4.3/oceanbase-client-2.4.3.jar>                                |
| xugu              | com.xugu.cloudjdbc.Driver                    | jdbc:xugu://localhost:5138                                                                                                                                                                                | /                                                  | <https://repo1.maven.org/maven2/com/xugudb/xugu-jdbc/12.2.0/xugu-jdbc-12.2.0.jar>                                               |
| InterSystems IRIS | com.intersystems.jdbc.IRISDriver             | jdbc:IRIS://localhost:1972/%SYS                                                                                                                                                                           | /                                                  | <https://raw.githubusercontent.com/intersystems-community/iris-driver-distribution/main/JDBC/JDK18/intersystems-jdbc-3.8.4.jar> |

### Example[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#example) <a href="#example" id="example"></a>

Simple

```
jdbc {
    url = "jdbc:mysql://localhost:3306/test"
    driver = "com.mysql.cj.jdbc.Driver"
    user = "root"
    password = "123456"
    query = "insert into test_table(name,age) values(?,?)"
}

```

Exactly-once

Turn on exact one-time semantics by setting `is_exactly_once`

```
jdbc {

    url = "jdbc:mysql://localhost:3306/test"
    driver = "com.mysql.cj.jdbc.Driver"

    max_retries = 0
    user = "root"
    password = "123456"
    query = "insert into test_table(name,age) values(?,?)"

    is_exactly_once = "true"

    xa_data_source_class_name = "com.mysql.cj.jdbc.MysqlXADataSource"
}
```

CDC(Change data capture) event

jdbc receive CDC example

```
sink {
    jdbc {
        url = "jdbc:mysql://localhost:3306"
        driver = "com.mysql.cj.jdbc.Driver"
        user = "root"
        password = "123456"
        
        database = "sink_database"
        table = "sink_table"
        primary_keys = ["key1", "key2", ...]
    }
}
```

Add saveMode function

To facilitate the creation of tables when they do not already exist, set the `schema_save_mode` to `CREATE_SCHEMA_WHEN_NOT_EXIST`.

```
sink {
    jdbc {
        url = "jdbc:mysql://localhost:3306"
        driver = "com.mysql.cj.jdbc.Driver"
        user = "root"
        password = "123456"
        generate_sink_sql = "true"
        database = "sink_database"
        table = "sink_table"
        primary_keys = ["key1", "key2", ...]
        schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
        data_save_mode="APPEND_DATA"
    }
}
```

Postgresql 9.5 version below support CDC(Change data capture) event

For PostgreSQL versions 9.5 and below, setting `compatible_mode` to `postgresLow` to enable support for PostgreSQL Change Data Capture (CDC) operations.

```
sink {
    jdbc {
        url = "jdbc:postgresql://localhost:5432"
        driver = "org.postgresql.Driver"
        user = "root"
        password = "123456"
        compatible_mode="postgresLow"
        database = "sink_database"
        table = "sink_table"
        support_upsert_by_query_primary_key_exist = true
        generate_sink_sql = true
        primary_keys = ["key1", "key2", ...]
    }
}

```

#### Multiple table[​](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#multiple-table) <a href="#multiple-table" id="multiple-table"></a>

**example1**[**​**](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#example1)

```
env {
  parallelism = 1
  job.mode = "STREAMING"
  checkpoint.interval = 5000
}

source {
  Mysql-CDC {
    base-url = "jdbc:mysql://127.0.0.1:3306/nexus"
    username = "root"
    password = "******"
    
    table-names = ["nexus.role","nexus.user","galileo.Bucket"]
  }
}

transform {
}

sink {
  jdbc {
    url = "jdbc:mysql://localhost:3306"
    driver = "com.mysql.cj.jdbc.Driver"
    user = "root"
    password = "123456"
    generate_sink_sql = true
    
    database = "${database_name}_test"
    table = "${table_name}_test"
    primary_keys = ["${primary_key}"]
  }
}
```

**example2**[**​**](https://seatunnel.apache.org/docs/2.3.7/connector-v2/sink/Jdbc#example2)

```
env {
  parallelism = 1
  job.mode = "BATCH"
}

source {
  Jdbc {
    driver = oracle.jdbc.driver.OracleDriver
    url = "jdbc:oracle:thin:@localhost:1521/XE"
    user = testUser
    password = testPassword

    table_list = [
      {
        table_path = "TESTSCHEMA.TABLE_1"
      },
      {
        table_path = "TESTSCHEMA.TABLE_2"
      }
    ]
  }
}

transform {
}

sink {
  jdbc {
    url = "jdbc:mysql://localhost:3306"
    driver = "com.mysql.cj.jdbc.Driver"
    user = "root"
    password = "123456"
    generate_sink_sql = true

    database = "${schema_name}_test"
    table = "${table_name}_test"
    primary_keys = ["${primary_key}"]
  }
}
```
