lanchengx opened a new pull request #12564:
URL: https://github.com/apache/shardingsphere/pull/12564


   
   Changes proposed in this pull request:
   - Add `show shadow rules` statement
   - Add `show shadow algorithms` statement
   - Add `drop shadow algorithm` statement
   - Add `show shadow table rules` statement
   - Add related tests
   
   ---
   
   #### There are some changes compared to the previous design
   
   The design before unmodified is like this,
   
   
![image](https://user-images.githubusercontent.com/52209337/133884757-aa7b31b3-ca87-46af-801d-792e18c9ac25.png)
   
   Existing problems: 
   1. Because of the one-to-many relationship between `ruleName` and `table`, 
in order to show `table`, `ruleName` is repeatedly displayed.
   2. The algorithm information is not clear enough in the result of `show 
shadow table rules`.
   
   After our discussion, added a `show shadow table rules` statement to show 
the relationship between `rule_name`, `table_rule` and `algorithm` more clearly.
   
   Revised design:
   
   
![image](https://user-images.githubusercontent.com/52209337/133884771-9c536eb1-891c-4edb-8cbe-17dec4902f9d.png)
   
   The result is clearer, but a statement will be added.
   


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