Skip to content
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] fix typo #1954

Merged
merged 6 commits into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -1,13 +1,13 @@
# GRANT ROLE 语法

```ngql
REVOKE ROLE <role_type> ON <space> FROM <user>
GRANT ROLE <role_type> ON <space> TO <user>
```

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

目前 **Nebula Graph** 包含四种角色权限:`GOD`、`ADMIN`、`DBA` 和 `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
Expand Up @@ -6,7 +6,7 @@ REVOKE ROLE <role_type> ON <space> FROM <user>

使用 `REVOKE` 语句从 **Nebula Graph** 用户删除权限。使用 `REVOKE` 必须拥有 `REVOKE` 权限。

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

待删除的角色以及用户帐户必须存在,否则会发生错误。

Expand Down
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` 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.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ REVOKE ROLE <role_type> ON <space> FROM <user>

The `REVOKE` statement removes access privileges from **Nebula Graph** user accounts. To use `REVOKE`, you must have the `REVOKE` privilege.

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

<!-- For information about roles, see [Using Roles](TODO). -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ For details on the returned results, please refer to the previous section [List

### STOP JOB

The `STOP JOB` statement jobs that are not finished.
The `STOP JOB` statement stops jobs that are not finished.

```ngql
nebula> STOP JOB 22
Expand Down