Diarmaid de Burca
2018-04-25 15:41:16 UTC
Currently, in OrientDB it is possible to batch up commands so that you can
run multiple commands at once. At the moment, it will return the return
value of the final command executed (by default). Is there any way to get
it to return a list of the commands, such that each element in the list
corresponds to the return value of the sent command?
e.g. I want to send:
begin;
insert into class content {"blah": "blah1"};
insert into class content {"blah": "blah2"};
insert into class content {"blah": "blah3"};
commit;
and have it return an array with 3 elements, with the first element
corresponding to blah1, the second blah2, etc.
run multiple commands at once. At the moment, it will return the return
value of the final command executed (by default). Is there any way to get
it to return a list of the commands, such that each element in the list
corresponds to the return value of the sent command?
e.g. I want to send:
begin;
insert into class content {"blah": "blah1"};
insert into class content {"blah": "blah2"};
insert into class content {"blah": "blah3"};
commit;
and have it return an array with 3 elements, with the first element
corresponding to blah1, the second blah2, etc.
--
---
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 orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
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 orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.