|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
JDBC 数据源参数 |
||
| BatchSize |
integer |
每次查询最大返回行数。默认 1000,最大值 10000 |
1000 |
| CustomQuery |
string |
自定义 SQL 查询语句(高级模式)。与 TableName 互斥 |
SELECT * FROM example_table |
| IncrementingColumn |
string |
自增列名。QueryMode 为 |
id |
| JdbcUrl |
string |
JDBC 连接 URL。ClickHouse 示例: |
jdbc:mysql://host:3306/database |
| Network |
string |
网络类型。取值: |
PublicNetwork |
| Password |
string |
数据库密码 |
example_password |
| PollingInterval |
integer |
轮询间隔,单位:秒。最小值 10,默认 60 |
60 |
| QueryMode |
string |
查询模式。取值: |
bulk |
| QueryTimeout |
integer |
SQL 查询超时时间,单位:秒。默认 30,最大值 300 |
30 |
| SecurityGroupId |
string |
安全组 ID。Network 为 PrivateNetwork 时必填 |
sg-a1b2c3d4e5f6g7h8i9j0 |
| TableName |
string |
目标表名。与 CustomQuery 互斥,未使用自定义 SQL 时必填 |
example_table |
| TimestampColumn |
string |
时间戳列名。QueryMode 为 |
updated_at |
| Username |
string |
数据库用户名 |
example_user |
| VSwitchIds |
string |
交换机 ID。Network 为 PrivateNetwork 时必填 |
vsw-a1b2c3d4e5f6g7h8i9j0k |
| VpcId |
string |
VPC 的 ID。Network 为 PrivateNetwork 时必填 |
vpc-a1b2c3d4e5f6g7h8i9j0k |