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
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix comment
amber-moe committed Mar 24, 2020
commit b1a83c88f6132ffeedaeecc649f0c335ee3282b1
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>
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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.