SelectDB

Updated at:

Property definition

  • Data source type: selectdb

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

Connection string mode

ParameterTypeRequiredDescriptionExample
addressArrayYesThe address. Accepts a single host and port pair.[{"host": "127.0.0.1", "port": 3306}]
loadAddressStringYesThe FE endpoint. Accepts one or more host and port pairs.[{"host": "127.0.0.2", "port": 8031}]
databaseStringYesThe name of the database.dbName
usernameStringYesThe username.xxxxx
passwordStringYesThe password.xxxxx
propertiesJSON ObjectNoThe properties of the driver.{"useSSL": "false"}
envTypeStringYesThe data source environment. Valid values: Dev (development environment), Prod (production environment).Dev

Configuration examples

Connection string mode

{
    "envType": "Prod",
    "address": [
        {
            "host": "127.0.0.1",
            "port": "3306"
        }
    ],
    "loadAddress":[
        {
            "host": "127.0.0.2",
            "port": "8031"
        }
    ],
    "database": "my_database",
    "username": "my_username",
    "password": "my_password",
    "properties": {
        "socketTimeout": "2000"
    }
}