You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/27 06:22:03 UTC

[GitHub] [shardingsphere] johnny2002 commented on issue #6458: How to skip sql parse and rewrite

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:
users@infra.apache.org