OrientDB pyorient - 使用二进制协议查询JSON

时间:2016-09-25 07:47:00

标签: orientdb

我想在pyorient中使用二进制协议(比HTTP更快的性能)。

我想通过以下查询来处理JSON响应:

response = client.query(“select @ this.toJson('out _ *: - 1')from Worker,其中userName ='”+ userName +“'”)

但是我从Pyorient库中得到了一个JSON序列化问题 - 是否可以(不使用http API)仅使用二进制协议从查询响应中处理JSON?

任何帮助表示赞赏!

1 个答案:

答案 0 :(得分:0)

尝试将此作为您的查询:

response = client.query("select @this.toJson('fetchPlan:out_*:-1') from Worker where userName = '" + userName + "'")
相关问题