Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-moe committed Mar 24, 2020
1 parent 91ed42b commit b1a83c8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Delete Vertex 语法

**Nebula Graph** 支持给定点 ID,删除这些顶点和与其相关联的入边和出边,语法如下:
**Nebula Graph** 支持给定点 ID(或 hash ID、UUID),删除这些顶点和与其相关联的入边和出边,语法如下:

```ngql
DELETE VERTEX <vid_list>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ GRANT ROLE <role_type> ON <space> TO <user>

使用 `GRANT` 语句为 **Nebula Graph** 用户授予权限。使用 `GRANT` 必须拥有 `GRANT` 权限。

目前 **Nebula Graph** 包含四种角色权限`GOD``ADMIN``DBA``USER``GUEST`
目前 **Nebula Graph** 包含五种角色权限`GOD``ADMIN``DBA``USER``GUEST`

通常,需要先使用 `CREATE USER` 创建帐户,然后再使用 `GRANT` 为其授予权限。待授予的角色以及用户帐户必须存在,否则会发生错误。
通常,需要先使用 `CREATE USER` 创建帐户,然后再使用 `GRANT` 为其授予权限(假设你拥有 `CREATE``GRANT` 权限)。待授予的角色以及用户帐户必须存在,否则会发生错误。

`<space>` 必须指定为存在的图空间,否则会发生错误。
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Delete Syntax

Given a list of vertices IDs, **Nebula Graph** supports `DELETE` the vertices and their associated in and out edges, syntax as the follows:
Given a list of vertices IDs, hash IDs or UUIDs, **Nebula Graph** supports `DELETE` the vertices and their associated in and out edges, syntax as the follows:

```ngql
DELETE VERTEX <vid_list>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
GRANT ROLE <role_type> ON <space> TO <user>
```

The `GRANT` statement assigns roles to **Nebula Graph** user accounts. To use `GRANT`, you must have the `GRANT` privilege.
The `GRANT` statement assigns role to **Nebula Graph** user account. To use `GRANT`, you must have the `GRANT` privilege.

Currently, there are four roles in **Nebula Graph**: `GOD`, `ADMIN`, `DBA`, `USER` and `GUEST`.
Currently, there are five roles in **Nebula Graph**: `GOD`, `ADMIN`, `DBA`, `USER` and `GUEST`.

Normally, a database administrator first uses `CREATE USER` to create an account then uses `GRANT` to define its privileges. Each role and user account to be granted must exist, or errors will occur.
Normally, first use `CREATE USER` to create an account then use `GRANT` to define its privileges (assume you have the `CREATE` and `GRANT` privilege). Each role and user account to be granted must exist, or errors will occur.

The `<space>` clause must be specified as an existed graph space or an error will occur.

0 comments on commit b1a83c8

Please sign in to comment.