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: kingbasees

  • Supported configuration mode (ConnectionPropertiesMode): UrlMode (connection string mode)

Connection string mode

ParameterTypeRequiredDefaultExampleDescription
addressJSON ArrayYes—[{"host": "127.0.0.1", "port": 5432}]The host and port of the KingbaseES instance. Accepts exactly one host/port pair.
databaseStringYes—dbThe name of the database to connect to.
usernameStringYes—xxxxxThe database username.
passwordStringYes—xxxxxThe password for the database user.
propertiesJSON ObjectNo—{"useSSL": "false"}Additional JDBC driver properties as key-value pairs. Use this field to control connection behavior such as SSL settings and connection timeouts.
envTypeStringYes—DevThe 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"
}