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/28 11:07:57 UTC

[GitHub] [shardingsphere] zjcnb commented on issue #14384: shardingsphere-jdbc-core-spring-boot-starter 5.0.0 sharding-algorithms.${}.type:INTERVAL Please help me

zjcnb commented on issue #14384:
URL: https://github.com/apache/shardingsphere/issues/14384#issuecomment-1002024596


   @dragonorant Hi, refer to this:
   
   ```
       rules:
         sharding:
           tables:
             account:
               actual-data-nodes: master.account_$->{2021..2023}_$->{['01','02','03','04','05','06','07','08','09','10','11','12']}
               table-strategy:
                 standard:
                   sharding-column: create_time
                   sharding-algorithm-name: table-interval
           sharding-algorithms:
             table-interval:
               type: INTERVAL
               props:
                 datetime-pattern: "yyyy-MM-dd HH:mm:ss"
                 datetime-lower: "2021-01-01 00:00:00"
                 datetime-upper: "2023-12-31 23:59:59"
                 sharding-suffix-pattern: "yyyy_MM"
                 datetime-interval-amount: "1"
                 datetime-interval-unit: "MONTHS"
   ```


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