属性定义

  • 数据源类型type为: clickhouse

  • 支持的配置模式(ConnectionPropertiesMode):UrlMode(连接串模式)

连接串模式

名称

类型

示例值

是否必填

描述和注意点

address

JSON Array

[
  {
    "host": "127.0.0.1",
    "port": 3306
  }
]

仅允许单个地址。

database

String

xxx_db

ClickHouse数据库。

properties

JSONObject

{
    "useSSL": "false"
}

驱动属性。

username

String

xxx_username

ClickHouse数据库访问的用户名。

password

String

xxx_password

ClickHouse数据库访问的密码。

securityProtocol

String

authTypeNone

认证方式,枚举值:

  • authTypeNone:表示没有SSL配置。

  • authTypeSsl:表示启用了SSL。

默认值:authTypeNone。

sslRootCertificateFile

String

123

SSL认证证书ID。当securityProtocolauthTypeSsl时必填。

envType

String

Dev

envType表示数据源环境信息。

  • Dev:开发环境。

  • Prod:生产环境。

数据源配置示例

连接串模式

{
    "address": [
        {
            "host": "127.0.0.1",
            "port": 5432
        }
    ],
    "securityProtocol": "AuthTypeNone",
    "database": "db",
    "properties": {
        "connectTimeout": "2000"
    },
    "username": "aliyun",
    "password": "xxx",
    "envType": "Dev",
}