liruhui commented on issue #24671:
URL: 
https://github.com/apache/shardingsphere/issues/24671#issuecomment-1477185094

   I find all the examples sharding database and sharding table names called in 
rule . for example ds_0, ds_1 ,ds_2 ,t_order_0, t_order_1
   use inline expression like 'ds_>{}.t_order_>{}' , but i want to know , if 
names not called in rule how i write code ?
   
   
   -------------------------------------------like this 
-------------------------------------
   
   //set dataSource names not in rule
   map.put("xxxx",dataSource);
   map.put("yyyy",dataSource1);
   
   
   ShardingRuleConfiguration shardingRuleConfiguration = new 
ShardingRuleConfiguration();
   ShardingAutoTableRuleConfiguration configuration = new 
ShardingAutoTableRuleConfiguration("wwww","xxxx.t_grade");
   ShardingAutoTableRuleConfiguration configuration1 = new 
ShardingAutoTableRuleConfiguration("pppp","yyyy.t_stu");
   
   
   
   At 2023-03-19 20:56:51, "Hongsheng Zhong" ***@***.***> wrote:
   
   Hi @liruhui , looks you're running version 5.2.0, the latest version is 
5.3.1, suggest to try 5.3.1.
   Use ShardingSphereDriver and yaml, it could be simplified, refere to 
ShardingSphere-JDBC for more details.
   
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you were mentioned.Message ID: ***@***.***>


-- 
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]

Reply via email to