KingbaseES
Updated at:
Use KingbaseES as a data source in DataWorks. This page covers the connection parameters and configuration examples for the KingbaseES connector.
Property definition
Data source type:
kingbaseesSupported configuration mode (
ConnectionPropertiesMode):UrlMode(connection string mode)
Connection string mode
| Parameter | Type | Required | Default | Example | Description |
|---|---|---|---|---|---|
address | JSON Array | Yes | — | [{"host": "127.0.0.1", "port": 5432}] | The host and port of the KingbaseES instance. Accepts exactly one host/port pair. |
database | String | Yes | — | db | The name of the database to connect to. |
username | String | Yes | — | xxxxx | The database username. |
password | String | Yes | — | xxxxx | The password for the database user. |
properties | JSON Object | No | — | {"useSSL": "false"} | Additional JDBC driver properties as key-value pairs. Use this field to control connection behavior such as SSL settings and connection timeouts. |
envType | String | Yes | — | Dev | The environment type. Valid values: Dev (development environment), Prod (production environment). |
Configuration examples
Basic connection
{
"address": [
{
"host": "127.0.0.1",
"port": 5432
}
],
"database": "db",
"username": "xxxxx",
"password": "xxxxx",
"envType": "Dev"
}Connection with driver properties
Use the properties field to pass JDBC driver options. The following example sets a connection timeout of 2000 milliseconds and disables SSL.
{
"address": [
{
"host": "127.0.0.1",
"port": 5432
}
],
"database": "db",
"username": "xxxxx",
"password": "xxxxx",
"properties": {
"connectTimeout": "2000",
"useSSL": "false"
},
"envType": "Dev"
}Is this page helpful?