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 2019/08/26 08:07:32 UTC

[GitHub] [incubator-shardingsphere] yhsmy opened a new issue #2924: sharding didn't affect when using sharding and encrypt!

yhsmy opened a new issue #2924: sharding didn't affect when using sharding and encrypt!
URL: https://github.com/apache/incubator-shardingsphere/issues/2924
 
 
   the profile as below:
   
   spring:
     shardingsphere:
       props:
         sql.show: true
         query.with.cipher.comlum: true
       datasource:
         name: ds0
         ds0:
           type: org.apache.commons.dbcp.BasicDataSource
           driver-class-name: com.mysql.cj.jdbc.Driver
           url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
           username: root
           password: root
           max-total: 100
       sharding:
         tables:
           user:
             actual-data-nodes: ds0.user_$->{0..4}
             table-strategy:
               inline:
                 sharding-column: id
                 algorithm-expression: user_$->{id % 5}
       encrypt:
         encryptors:
           encryptor_aes:
             type: aes
             props.aes.key.value: 123456
         tables:
           user: #user表
             columns:
               name:
                 cipherColumn: name
                 encryptor: encryptor_aes

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services