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 2021/01/07 09:39:17 UTC
[GitHub] [shardingsphere] jingshanglu opened a new issue #8936: Support "show replica_query rule"
jingshanglu opened a new issue #8936:
URL: https://github.com/apache/shardingsphere/issues/8936
## Feature Request
add support `show replica_query rule`
### Describe the feature you would like.
add support `show replica_query rule`, the result like this:
+-----------------------------+----------------------------------+----------------------------------+
|logicDataSourcename | primaryDataSourceName| replicaDataSourceNames|
+-----------------------------+----------------------------------+----------------------------------+
| xxxx | xxxxx | xxx |
+-----------------------------+----------------------------------+----------------------------------+
----------------------------------------------------------------
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
[GitHub] [shardingsphere] tristaZero edited a comment on issue #8936: Support "show replica_query rule"
Posted by GitBox <gi...@apache.org>.
tristaZero edited a comment on issue #8936:
URL: https://github.com/apache/shardingsphere/issues/8936#issuecomment-757610516
```yaml
-rules:
- !REPLICA_QUERY
dataSources:
pr_ds:
name: pr_ds
primaryDataSourceName: primary_ds
replicaDataSourceNames:
- replica_ds_0
- replica_ds_1
```
**Convert to**
```sql
name pr_ds
primaryDataSourceName primary_ds
replicaDataSourceNames replica_ds_0 replica_ds_1
```
----------------------------------------------------------------
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
[GitHub] [shardingsphere] terrymanu closed issue #8936: Support "show replica_query rule"
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #8936:
URL: https://github.com/apache/shardingsphere/issues/8936
----------------------------------------------------------------
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
[GitHub] [shardingsphere] tristaZero commented on issue #8936: Support "show replica_query rule"
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #8936:
URL: https://github.com/apache/shardingsphere/issues/8936#issuecomment-757610516
```yaml
-rules:
- !REPLICA_QUERY
dataSources:
pr_ds:
name: pr_ds
primaryDataSourceName: primary_ds
replicaDataSourceNames:
- replica_ds_0
- replica_ds_1
```
**Convert to **
```sql
name pr_ds
primaryDataSourceName primary_ds
replicaDataSourceNames replica_ds_0 replica_ds_1
```
----------------------------------------------------------------
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