-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc]add if not exists #1407
[doc]add if not exists #1407
Conversation
...l-EN/2.query-language/4.statement-syntax/1.data-definition-statements/create-space-syntax.md
Outdated
Show resolved
Hide resolved
...l-CN/2.query-language/4.statement-syntax/1.data-definition-statements/create-space-syntax.md
Outdated
Show resolved
Hide resolved
...l-CN/2.query-language/4.statement-syntax/1.data-definition-statements/create-space-syntax.md
Outdated
Show resolved
Hide resolved
...N/2.query-language/4.statement-syntax/1.data-definition-statements/create-tag-edge-syntax.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
``` | ||
|
||
This statement creates a new space with the given name. SPACE is a region that provides physically isolated graphs in **Nebula Graph**. An error occurs if the database exists. | ||
|
||
## IF NOT EXIST | ||
|
||
We added the `If NOT EXIST` keywords for creating spaces. This keyword automatically detects if the corresponding space exists. If it does not exist, a new one is created. Otherwise, no space is created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keyword not keywords
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree. 3 words here.
@@ -21,6 +21,12 @@ CREATE {TAG | EDGE} <tag_name> | <edge_name> | |||
|
|||
The features of this syntax are described in the following sections: | |||
|
|||
## IF NOT EXIST | |||
|
|||
We added the `If NOT EXIST` keywords for creating tags or edges. This keyword automatically detects if the corresponding tag or edge exists. If it does not exist, a new one is created. Otherwise, no tag or edge is created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keyword
...N/2.query-language/4.statement-syntax/1.data-definition-statements/create-tag-edge-syntax.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some errors
...l-CN/2.query-language/4.statement-syntax/1.data-definition-statements/create-space-syntax.md
Outdated
Show resolved
Hide resolved
...l-CN/2.query-language/4.statement-syntax/1.data-definition-statements/create-space-syntax.md
Outdated
Show resolved
Hide resolved
...N/2.query-language/4.statement-syntax/1.data-definition-statements/create-tag-edge-syntax.md
Outdated
Show resolved
Hide resolved
...N/2.query-language/4.statement-syntax/1.data-definition-statements/create-tag-edge-syntax.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Unit testing passed. |
* add if not exist * comments * jie * wum * update query syntax
Add if not exist in create space and tag/edge