wgy8283335 commented on issue #2133: sharding-proxy customer database or table strategy config URL: https://github.com/apache/incubator-shardingsphere/issues/2133#issuecomment-479271765 @DongJigong In sharding-proxy source code,you could find YamlShardingStrategyConfiguration. There are five kinds of Strategy.If you wanna use custom strategy, you could choose standard or complex. And set **AlgorithmClassName to your custom Algorithm. org.apache.shardingsphere.core.yaml.config.sharding.YamlShardingStrategyConfiguration @Getter @Setter public class YamlShardingStrategyConfiguration implements YamlConfiguration { private YamlStandardShardingStrategyConfiguration standard; private YamlComplexShardingStrategyConfiguration complex; private YamlHintShardingStrategyConfiguration hint; private YamlInlineShardingStrategyConfiguration inline; private YamlNoneShardingStrategyConfiguration none; } @Getter @Setter public final class YamlStandardShardingStrategyConfiguration implements YamlBaseShardingStrategyConfiguration { private String shardingColumn; private String preciseAlgorithmClassName; private String rangeAlgorithmClassName; }
---------------------------------------------------------------- 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] With regards, Apache Git Services
