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 2022/08/10 07:16:40 UTC
[GitHub] [shardingsphere] TeslaCN commented on a diff in pull request #20050: Add `CREATE DEFAULT SINGLE TABLE RULE` docs.
TeslaCN commented on code in PR #20050:
URL: https://github.com/apache/shardingsphere/pull/20050#discussion_r942101918
##########
docs/document/content/reference/distsql/syntax/rdl/rule-definition/single-table/create-default-single-table-rule.en.md:
##########
@@ -0,0 +1,41 @@
++++
+title = "CREATE DEFAULT SINGLE TABLE RULE"
+weight = 2
++++
+
+## Description
+
+The `CREATE DEFAULT SINGLE TABLE RULE` syntax is used to create a default single table rule.
+
+### Syntax
+
+```sql
+CreateDefaultSingleTableRule ::=
+ 'CREATE' 'DEFAULT' 'SINGLE` `TABLE` `RULE' singleTableDefinition
+
+singleTableDefinition ::=
+ 'RESOURCE' '=' resourceName
+
+resourceName ::=
+ identifier
+```
+
+### Supplement
+
+- `RESOURCE` needs to use data source resource managed by RDL
+
+### Example
+
+#### Create a default single table rule
+
+```sql
+CREATE DEFAULT SINGLE TABLE RULE RESOURCE = ds_0;
+```
+
+### Reserved word
+
+`CREATE`、`SHARDING`、`SINGLE`、`TABLE`、`RULE`、`RESOURCE`
Review Comment:
`、` in English documents?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org