agoodcoolman commented on issue #13700:
URL:
https://github.com/apache/shardingsphere/issues/13700#issuecomment-973836221
modify config.yaml
add
`- !SHARDING `
```
dataSources:
ds0:
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc-url:
connectionTimeoutMilliseconds: 30000
username:
password:
ds1:
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc-url:
username: sa
password:
rules:
- !SHARDING
tables:
data_door_info_all:
actual-data-nodes: ds${[0,1]}.data_door_info_all_$->{[0,1,2,3]}
databaseStrategy:
standard:
sharding-column: id
shardingAlgorithmName: hash_mode
table-strategy:
standard:
sharding-column: idcard
sharding-algorithm-name: hash_mode
defaultTableStrategy:
none:
shardingAlgorithms:
hash_mod:
type: MOD
props:
sharding-count: 3
mode:
type: memory
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]