Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这行得通
data = client.query("SELECT FROM Person WHERE id = '1000'") print(data)
但这不是
results = graph.query(Person, name='Prakash') print(results)
这会引发错误说
TypeError: query() got an unexpected keyword argument 'name'
创建一个名为“pydb”的图形数据库,为空(我在 Windows 10 中使用带有 orientdb 2.2.28 的图形界面),然后使用此代码(在 eclipse 中运行),您将获得动物顶点列表:
结果:
指南在这里:https ://github.com/orientechnologies/pyorient