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]show-more-fields-desc-schema #1907

Merged
merged 2 commits into from
Mar 16, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
Expand Up @@ -18,36 +18,36 @@ DESCRIBE 关键词的作用是获取关于 space, tag, edge 结构的信息。
```ngql
nebula> DESCRIBE SPACE nba;
========================================================
| ID |        Name | Partition number | Replica Factor |
| ID |     Name | Partition number | Replica Factor |
========================================================
|  1 | nba |             100 |              1 |
|  1 | nba |             100 |              1 |
-------------------------------------------------------- 
```

获取指定 tag 的信息,对应 `DESCRIBE TAG`。

```ngql
nebula> DESCRIBE TAG player
==================
| Field |   Type |
==================
|  name | string |
------------------
|   age |    int |
------------------ 
nebula> DESCRIBE TAG player;
==================================================
| Field | Type | Null | Key | Default | Extra |
==================================================
| name | string | false | | | |
--------------------------------------------------
|  age | int | false | | | |
--------------------------------------------------
```

获取指定 EDGE 的信息,对应 `DESCRIBE EDGE`。

```ngql
nebula> DESCRIBE EDGE serve
=====================
|      Field | Type |
=====================
| start_year |  int |
---------------------
|   end_year |  int |
---------------------
nebula> DESCRIBE EDGE serve;
======================================================
| Field | Type | Null | Key | Default | Extra |
======================================================
| start_year | int | false | | | |
------------------------------------------------------
| end_year | int | false | | | |
------------------------------------------------------
```

返回指定索引信息,对应 `DESCRIBE INDEX`。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Obtain information about space.
```ngql
nebula> DESCRIBE SPACE nba;
========================================================
| ID |        Name | Partition number | Replica Factor |
| ID |     Name | Partition number | Replica Factor |
========================================================
|  1 | nba |             100 |              1 |
-------------------------------------------------------- 
Expand All @@ -27,27 +27,27 @@ nebula> DESCRIBE SPACE nba;
Obtain information about tag in a given space.

```ngql
nebula> DESCRIBE TAG player
==================
| Field |   Type |
==================
|  name | string |
------------------
|   age |    int |
------------------ 
nebula> DESCRIBE TAG player;
==================================================
| Field | Type | Null | Key | Default | Extra |
==================================================
| name | string | false | | | |
--------------------------------------------------
|  age | int | false | | | |
--------------------------------------------------
```

Obtain information about edge in a given space.

```ngql
nebula> DESCRIBE EDGE serve
=====================
|      Field | Type |
=====================
| start_year |  int |
---------------------
|   end_year |  int |
---------------------
nebula> DESCRIBE EDGE serve;
======================================================
| Field | Type | Null | Key | Default | Extra |
======================================================
| start_year | int | false | | | |
------------------------------------------------------
| end_year | int | false | | | |
------------------------------------------------------
```

Obtain information about the index.
Expand Down