RaigorJiang opened a new issue, #23138:
URL: https://github.com/apache/shardingsphere/issues/23138

   Hi community,
   
   this issue is for #22759.
   
   I want to add new DistSQL for manage mask rule configuration.
   
   ### Syntax example
   ```sql
   # CREATE
   CREATE MASK RULE (IF NOT EXISTS)? t_mask (
   COLUMNS(
   
(NAME=telephone,TYPE(NAME='INDEX_BASED_REPLACE',PROPERTIES("start-index"=3,"stop-index"=8,"replace-char"="*"))),
   (NAME=address,TYPE(NAME='MD5'))
   ));
   
   # ALTER
   ALTER MASK RULE t_mask (
   COLUMNS(
   
(NAME=telephone,TYPE(NAME='INDEX_BASED_REPLACE',PROPERTIES("start-index"=3,"stop-index"=8,"replace-char"="*"))),
   (NAME=address,TYPE(NAME='MD5'))
   ));
   
   # DROP
   DROP MASK RULE (IF EXISTS)? t_mask;
   
   # SHOW
   SHOW MASK (RULE ruleName | RULES) (FROM databaseName)?
   ```
   
   ### Tasks
   - [ ]  CREATE MASK RULE
   - [ ]  ALTER MASK RULE 
   - [ ]  DROP MASK RULE 
   - [ ] SHOW MASK RULES | SHOW MASK RULE ruleName


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