是否可以从OrientDB中用JavaScript编写的服务器端函数执行OSQL批处理?尝试做某事:
>>> lista = [first,second]
>>> import numpy as np
>>> np.array(lista)
array([[1, 2, 3],
[4, 5, 6]])
>>> np.array(lista)[:,0]
array([1, 4])
>>> np.array(lista)[:,1]
array([2, 5])
>>> np.array(lista)[:,2]
array([3, 6])
抛出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);
例外。
有什么建议吗?