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 2021/12/17 07:00:57 UTC

[GitHub] [shardingsphere] 65725738 commented on issue #14103: sharding Can you configure only the database branch policy but not the table branch policy?

65725738 commented on issue #14103:
URL: https://github.com/apache/shardingsphere/issues/14103#issuecomment-996483792


   > 
   
   spring:
     application:
       name: task
     shardingsphere:
       datasource:
         names: ds0,ds1
         ds0:
           type: com.alibaba.druid.pool.DruidDataSource
           driver-class-name: com.mysql.cj.jdbc.Driver
           url: jdbc:mysql://
           username: root
           password: 111
         ds1:
           type: com.alibaba.druid.pool.DruidDataSource
           driver-class-name: com.mysql.cj.jdbc.Driver
           url: jdbc:mysql:
           username: root
           password: 111
       rules:
         defaultDatabaseStrategy:
           standard:
              shardingColumn: id
              shardingAlgorithmName: database-inline
         defaultTableStrategy:
           none:          
         shardingAlgorithms:
            database-inline:
               type: INLINE
               props:
                 algorithm-expression: ds$->{id % 2}       
   
   
   5.0.0 version
   Is that right?
   
   
   
   


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org