johnny2002 edited a comment 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"); //
boolean execute = statement.execute("insert into ... select ... from ....
group by ... having...");
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 without parse SQL.
----------------------------------------------------------------
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]