如何使用python获取orientdb中顶点的边对象数据

2024-09-29 23:31:26 发布

您现在位置:Python中文网/ 问答频道 /正文

import pyorient

# create connection 
client = pyorient.OrientDB("localhost", 2424) 

# open databse 
client.db_open( "Test", "admin", "admin" )

requiredObj = client.command(' select from chat where app_cat=appCategory and module=module and type=type and prob_cat=problemCategory  ')

print requiredObj[0]

输出:

^{pr2}$

这里我想使用python重新绑定out_': <pyorient.otypes.OrientBinaryObject object>。当我尝试用这段代码来借记对象时,这个错误就来了

print requiredObj[0].out_[0]

TypeError: 'OrientBinaryObject' object does not support indexing

Tags: andimportclientobjectadmintypecreateopen

热门问题