menghaoranss commented on issue #10454:
URL: 
https://github.com/apache/shardingsphere/issues/10454#issuecomment-848452924


   **SHOW READWRITE_SPLITTING RULES (FROM schemaName)?**
   
   
   _static_
   ```
   mysql> show readwrite_splitting rules;
   
+------------+-------------------------+---------------------+--------------------------+------------------+------------------------+
   | name       | autoAwareDataSourceName | writeDataSourceName | 
readDataSourceNames      | loadBalancerType | loadBalancerProps      |
   
+------------+-------------------------+---------------------+--------------------------+------------------+------------------------+
   | ms_group_0 | NULL                    | ds_primary          | [ds_slave_0, 
ds_slave_1] | random           | {}                     |
   
+------------+-------------------------+---------------------+--------------------------+------------------+------------------------+
   1 row in set (0.00 sec)
   ```
   
   _dynamic_
   ```
   mysql> show readwrite_splitting rules from readwrite_splitting_db;
   
+-------+-------------------------+---------------------+---------------------+------------------+------------------------+
   | name  | autoAwareDataSourceName | writeDataSourceName | 
readDataSourceNames | loadBalancerType | loadBalancerProps      |
   
+-------+-------------------------+---------------------+---------------------+------------------+------------------------+
   | pr_ds | ms_group_0              | NULL                | []                 
 | random           | {read_weight=2:1}      |
   
+-------+-------------------------+---------------------+---------------------+------------------+------------------------+
   1 row in set (0.01 sec)
   ```
   
   _all_
   ```
   mysql> show readwrite_splitting rules from readwrite_splitting_db;
   
+-------+-------------------------+---------------------+------------------------+------------------+------------------------+
   | name  | autoAwareDataSourceName | writeDataSourceName | 
readDataSourceNames    | loadBalancerType | loadBalancerProps      |
   
+-------+-------------------------+---------------------+------------------------+------------------+------------------------+
   | pr_ds | ms_group_0              | write_ds            | [read_ds_0, 
read_ds_1] | random           | {read_weight=2:1}      |
   
+-------+-------------------------+---------------------+------------------------+------------------+------------------------+
   1 row in set (0.00 sec)
   ```


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


Reply via email to