Skip to content

Commit ea1c2fe

Browse files
authored
Merge pull request #71 from databendcloud/fix/dsn-format
fix: use the same dsn with cloud
2 parents 2b62c3d + 3c86e17 commit ea1c2fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Config your database and Databend connection in `config/conf.json`:
2828
"sourceDbTables": ["mydb.*@test_table.*"],
2929
"sourceWhereCondition": "id > 0",
3030
"sourceSplitKey": "id",
31-
"databendDSN": "http://username:password@host:port",
31+
"databendDSN": "databend://username:password@host:port?sslmode=disable",
3232
"databendTable": "mydb.test_table3",
3333
"batchSize": 40000,
3434
"batchMaxInterval": 30,
@@ -113,7 +113,7 @@ Th example of the `conf.json`:
113113
"sourceQuery": "select * from mydb.my_table",
114114
"sourceWhereCondition": "id < 100",
115115
"sourceSplitKey": "id",
116-
"databendDSN": "https://cloudapp:password@tn3ftqihs--medium-p8at.gw.aws-us-east-2.default.databend.com:443",
116+
"databendDSN": "databend://cloudapp:password@tn3ftqihs--medium-p8at.gw.aws-us-east-2.default.databend.com:443",
117117
"databendTable": "testSync.my_table",
118118
"batchSize": 2,
119119
"batchMaxInterval": 30,
@@ -143,7 +143,7 @@ The example of the `conf.json`:
143143
"sourceSplitKey": "",
144144
"sourceSplitTimeKey": "t1",
145145
"timeSplitUnit": "hour",
146-
"databendDSN": "https://cloudapp:password@tn3ftqihs--medium-p8at.gw.aws-us-east-2.default.databend.com:443",
146+
"databendDSN": "databend://cloudapp:password@tn3ftqihs--medium-p8at.gw.aws-us-east-2.default.databend.com:443",
147147
"databendTable": "default.test_table1",
148148
"batchSize": 10000,
149149
"batchMaxInterval": 30,

0 commit comments

Comments
 (0)