Hi all,
I'm trying to create a function using Javascript, but automatically load it
with a OSQL script. In particular, my code looks like this:
CREATE FUNCTION basic_traverse """edge_type = edge_type.replace(',','","');
var sql = 'TRAVERSE direction("edge_type") FROM (SELECT FROM V WHERE key =
"value")'.replace('key',key).replace('value',value).replace('edge_type',edge_type).replace('direction',direction);
return orient.getDatabase().query(sql)""" PARAMETERS edge_type,key,value,
direction LANGUAGE Javascript;
I think I'm running into trouble with double quotes. Anyway around this?
Liz
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.