py2neo database

1.Database

from py2neo import Database
db = Database("bolt://camelot.example.com:7687")
default_db = Database()
default_db
描述
config返回配置信息
default_graph默认的图类
kernel_start_timeneo4j实例进入操作模式的时间
kernel_versionneo4j版本
nameneo4j数据库名称
primitive_countsReturn a dictionary of estimates of the numbers of different kinds of Neo4j primitives
product
query_jmx(namespace, instance=None, name=None, type=None)
store_creation_time
store_file_sizes
store_id
uri

2.Graph

类创建

描述
begin开始一个Transaction
create(subgraph)返回Transaction.create() 方法
database = None
delete(subgraph)返回Transaction.delete()
delete_all()删除所有的节点和方法
evaluate(cypher, parameters=None, **kwparameters)返回 Transaction.evaluate()
exists(subgraph)返回Transaction.exists()
match(nodes=None, r_type=None, limit=None)匹配返回相应节点和关系
match_one(nodes=None, r_type=None)limit=1
merge(subgraph, label=None, *property_keys)返回 Transaction.merge()
nodes返回节点
pull(subgraph)
push(subgraph)
relationships
run(cypher, parameters=None, **kwparameters)返回 Transaction.run()
schema = None
separate(subgraph)返回 Transaction.separate()

3.Schema

4.Transaction

Transaction是Cypher语言的容器

描述
commit()提交
create(subgraph)创建
delete(subgraph)
evaluate(cypher, parameters=None, **kwparameters)
exists(subgraph)[source]
finished()
merge(subgraph, primary_label=None, primary_key=None)
process()
pull(subgraph)
push(subgraph)
rollback()
run(cypher, parameters=None, **kwparameters)
separate(subgraph)

5.Cursor

描述
close()
current
data()
evaluate(field=0)
forward(amount=1)
keys()
plan()
stats()
summary()
to_data_frame(index=None, columns=None, dtype=None)
to_matrix(mutable=False)
to_ndarray(dtype=None, order=‘K’)
to_series(field=0, index=None, dtype=None)
to_subgraph()
to_table()

参考文献:
https://py2neo.org/v4/database.html

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值