-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc]add if exists in dropping schema (#1511)
Co-authored-by: dutor <[email protected]>
- Loading branch information
Showing
6 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
...ry-language/4.statement-syntax/1.data-definition-statements/drop-edge-syntax.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# DROP EDGE 语法 | ||
|
||
```ngql | ||
DROP EDGE <edge_type_name> | ||
DROP EDGE [IF EXISTS] <edge_type_name> | ||
``` | ||
|
||
仅支持有 DROP 权限的用户进行此操作。 | ||
|
||
删除边可使用 `IF EXISTS` 关键字,这个关键字会自动检测对应的边是否存在,如果存在则删除,如果不存在则直接返回。 | ||
|
||
此操作将移除指定类型的所有边。 | ||
|
||
此操作仅删除 Schema 信息,硬盘中所有文件及目录均**未被直接删除**,数据会在下次 compaction 时删除。 |
5 changes: 4 additions & 1 deletion
5
...y-language/4.statement-syntax/1.data-definition-statements/drop-space-syntax.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ery-language/4.statement-syntax/1.data-definition-statements/drop-tag-syntax.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ry-language/4.statement-syntax/1.data-definition-statements/drop-edge-syntax.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# Drop Edge Syntax | ||
|
||
```ngql | ||
DROP EDGE <edge_type_name> | ||
DROP EDGE [IF EXISTS] <edge_type_name> | ||
``` | ||
|
||
You must have the DROP privilege for the edge type. | ||
|
||
You can use the `If EXISTS` keywords when dropping edges. This keyword automatically detects if the corresponding edge exists. If it exists, it will be deleted. Otherwise, no edge is deleted. | ||
|
||
This statement removes all the edges (connections) within the specific edge type. | ||
|
||
This operation only deletes the Schema data, all the files and directories in the disk are NOT deleted directly, data is deleted in the next compaction. |
4 changes: 3 additions & 1 deletion
4
...y-language/4.statement-syntax/1.data-definition-statements/drop-space-syntax.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ery-language/4.statement-syntax/1.data-definition-statements/drop-tag-syntax.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters