Skip to content
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 @@ -33,7 +33,7 @@ Common statements:
//Clear the graph project, please do not attempt this lightly as it will delete both the schema and data of the selected graph project.
session.run("CALL db.dropDB()");
//Create vertex
session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,INT32, false, 'name' ,STRING, false)");
session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,'INT32', false, 'name' ,'STRING', false)");
//Create edge
session.run("CALL db.createEdgeLabel('is_friend','[[\"person\",\"person\"]]')");
//Create index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Client按照如下格式进行实例化:
//清空图项目,请不要轻易尝试,它会清空你选中的图项目的模型以及数据
session.run("CALL db.dropDB()");
//创建点模型
session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,INT32, false, 'name' ,STRING, false)");
session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,'INT32', false, 'name' ,'STRING', false)");
//创建边模型
session.run("CALL db.createEdgeLabel('is_friend','[[\"person\",\"person\"]]')");
//创建索引
Expand Down Expand Up @@ -69,4 +69,4 @@ Client按照如下格式进行实例化:

## 客户端示例

在代码目录中的demo/Bolt下面有Golang、Java、JavaScript、Python、Rust 这几个语言的的例子。想要了解更多可见[客户端示例](https://github.com/TuGraph-family/tugraph-db/tree/master/demo)
在代码目录中的demo/Bolt下面有Golang、Java、JavaScript、Python、Rust 这几个语言的的例子。想要了解更多可见[客户端示例](https://github.com/TuGraph-family/tugraph-db/tree/master/demo)
Loading