shardingsphere
shardingsphere copied to clipboard
The document is not up to date
https://shardingsphere.apache.org/document/current/cn/manual/sharding-jdbc/usage/sharding/
TableRuleConfiguration orderTableRuleConfig = new TableRuleConfiguration();
orderTableRuleConfig.setLogicTable("t_order");
orderTableRuleConfig.setActualDataNodes("ds${0..1}.t_order${0..1}");
But, these two properties are final.
Can you submit a pull request?
I have already pulled request this question, please pay attention to the latest example of the official website. https://shardingsphere.apache.org/document/current/cn/manual/sharding-jdbc/usage/sharding/