Hi Buko,
Execute command that lets multiple Commands be grouped together and executed as one… but the Execute command takes a string. What happens if I have a series of Command objects that I would like to execute together in a single transaction?
I think the first example in the documentation for EXECUTE should do what you need [1].
(though I think this should be made more prominent in the javadocs at http://docs.basex.org/javadoc/org/basex/core/Command.html)
As there are numerous ways to run commands in BaseX (on command line, via scripts, via REST, etc), could you give me some more details on how you proceeded?
Some more thoughts on this:
• We could generally run commands in a single transaction whenever they are passed on as a single string (and separated by semicolons).
• Probably we shouldn’t this for scripts: Commands script can have a large number of commands and are often used for batch operations, which might run for a long time in the background.
Suggestions are welcome. Christian