dataSources:
m1:
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
url:
username:
password:
m2:
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
url:
username:
password:
rules:
- !SINGLE
tables:
- m2.my_table_without_sharding
...**<422 items>**
- !SHARDING
tables:
here is the sharding config
shardingAlgorithms:
here is the sharding config
keyGenerators:
snowflake:
type: custom_snowflake_id
props:
sql-show: true
When I adding a new "- !SINGLE" table for sharding, I hava to add this config for 4 environment(dev,sit,uat,prod) and all project modules (50 odules) have to adding these table config, and they are all the same!
So how to config common rule config for sharding-jdbc:5.5.0?
I have 50 project module and each of them using sharding-jdbc now, and I have to config all tables for dev,sit,uat,prod env:
Here is the sharding-uat.yaml:
When I adding a new "- !SINGLE" table for sharding, I hava to add this config for 4 environment(dev,sit,uat,prod) and all project modules (50 odules) have to adding these table config, and they are all the same! So how to config common rule config for sharding-jdbc:5.5.0?