terrymanu commented on issue #5017: [DISCUSS] Brand new sharding configuration 
API of Release 5.x
URL: 
https://github.com/apache/incubator-shardingsphere/issues/5017#issuecomment-612600779
 
 
   The yaml rule file may like this:
   
   ```yaml
   shardingRule:
     tables: 
       t_order: 
         databaseStrategy: 
           standard: 
             shardingColumn: order_id
             shardingAlgorithm:
               type: INLINE
               props:
                 expression: t_order_$->{order_id % 8}
           standard: 
             shardingColumn: order_id
             shardingAlgorithm:
               type: CLASS
               props:
                 precise-class-name: xxxx
                 range-class-name: xxxx
           standard: 
             shardingColumn: order_id
             shardingAlgorithm:
               type: HASH
               props:
                 sharding-count: 8
                 
           complex: 
             shardingColumns: year, month
             shardingAlgorithm:
               type: complex
           hint: 
             shardingAlgorithm:
               type: hint
           None:
             shardingAlgorithm:
               type: none
         tableStrategy:
   ```

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

Reply via email to