我们可以在orientdb中安装EDGE吗?

how*_*ark 3 upsert orientdb orientdb-2.1

是否有可能在orientdb中获取一个边缘的示例.如果它不存在,有没有办法检查边是否存在,如果确实存在则只更新边,否则创建新边.我使用的是Orientdb 2.1.13版本.谢谢

Iva*_*tti 5

通过SQL,您可以使用基本的UPDATE命令

update written_by SET out = #9:2, in = #16:43, prop="gianni" UPSERT WHERE out = #9:2 and in = #16:43
Run Code Online (Sandbox Code Playgroud)

http://orientdb.com/docs/last/SQL-Update.html