chenguo-design commented on issue #32977:
URL: 
https://github.com/apache/shardingsphere/issues/32977#issuecomment-2370368374

   > Hi @chenguo-design, thank you for your feedback, can you provide your 
configuration yaml?
   the configuration yaml is below, for privacy reasons, i delete the content 
in tables and bindingTables
   `dataSources:
     ds:
       dataSourceClassName: com.zaxxer.hikari.HikariDataSource
       driverClassName: $${sharding.config.driverClassName::}
       jdbcUrl: $${sharding.config.ds.jdbcUrl::}
       username: $${sharding.config.ds.username::}
       password: $${sharding.config.ds.password::}
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: $${sharding.config.maxPoolSize::}
       minPoolSize: $${sharding.config.minPoolSize::}
     ds_his:
       dataSourceClassName: com.zaxxer.hikari.HikariDataSource
       driverClassName: $${sharding.config.driverClassName::}
       jdbcUrl: $${sharding.config.ds_his.jdbcUrl::}
       username: $${sharding.config.ds_his.username::}
       password: $${sharding.config.ds_his.password::}
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: $${sharding.config.maxPoolSize::}
       minPoolSize: $${sharding.config.minPoolSize::}
   
   rules:
   - !SINGLE
     tables:
       - ds.*
   - !SHARDING
     tables:
     bindingTables:
     defaultDatabaseStrategy:
       standard:
         shardingColumn: archived
         shardingAlgorithmName: default_database_inline
     shardingAlgorithms:
       default_database_inline:
         type: INLINE
         props:
           algorithm-expression: ds${archived==0?'':'_his'}
   props:
     sql-show: ${spring.db.show-sql:false}`


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to