【发布时间】:2016-07-06 17:37:47
【问题描述】:
是否可以从 OrientDB 中用 JavaScript 编写的服务器端函数执行 OSQL 批处理?尝试做一些事情:
var cmd = "begin\n" +
"let account = create vertex Account set name = 'Luke'\n" +
"let city = select from City where name = 'London'\n" +
"let edge = create edge Lives from $account to $city\n" +
"commit retry 100\n" +
"return $edge"
db.command(cmd);
抛出 com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException 异常。
有什么建议吗?
【问题讨论】:
标签: javascript orientdb