johnny2002 commented on issue #6458:
URL: https://github.com/apache/shardingsphere/issues/6458#issuecomment-664144149
my config file:
spring.shardingsphere.!SHARDING.tables.tab_user.actual-data-nodes=master${0..1}.tab_user
spring.shardingsphere.!SHARDING.tables.tab_user.database-strategy.hint.algorithmClassName=com.ibm.sharding.MyHintShardingAlgorithm
My java code:
HintManager hintManager = HintManager.getInstance();
hintManager.setDatabaseShardingValue("0"); //
I want sharding-jdbc do not parse my sql, and get the right datasource from
MyHintShardingAlgorithm directly. I think, you need to have somewhere to let me
set the logic table name so that you know the configuration.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]