Currently, INSERT, DELETE and UPDATE operations are supported.
Configuration
The configuration of the JDBC sink connector has the following properties.Property
Name | Type | Required | Sensitive | Default | Description |
---|---|---|---|---|---|
userName | String | false | true | ” ” (empty string) | The username used to connect to the database specified by jdbcUrl .Note: userName is case-sensitive. |
password | String | false | true | ” ” (empty string) | The password used to connect to the database specified by jdbcUrl . Note: password is case-sensitive. |
jdbcUrl | String | true | false | ” ” (empty string) | The JDBC URL of the database to which the connector connects. |
tableName | String | true | false | ” ” (empty string) | The name of the table to which the connector writes. |
nonKey | String | false | false | ” ” (empty string) | A comma-separated list contains the fields used in updating events. |
key | String | false | false | ” ” (empty string) | A comma-separated list contains the fields used in where condition of updating and deleting events. |
timeoutMs | int | false | false | 500 | The JDBC operation timeout in milliseconds. |
batchSize | int | false | false | 200 | The batch size of updates made to the database. |
Example
Before using the JDBC sink connector, you need to create a configuration file through one of the following methods.-
JSON
-
YAML