zhaochong-byte commented on issue #12950:
URL:
https://github.com/apache/shardingsphere/issues/12950#issuecomment-939211646
spring:
shardingsphere:
datasource:
names: zc
zc:
type: com.zaxxer.hikari.HikariDataSource
jdbc-url:
jdbc:mysql://localhost:3306/zc?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useLegacyDatetimeCode=false&serverTimezone=UTC
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
rules:
sharding:
tables:
device_log:
actual-data-nodes: zc.device_log_$->{1..3}
table-strategy:
standard:
sharding-column: company_code
sharding-algorithm-name: table-inline
sharding-algorithms:
table-inline:
type: INLINE
props:
algorithm-expression: device_log_$->{company_code}
--
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]