Closed
Description
In out client system we need to implement a mechanism for automatic incremental database migration.
For that we need to execute a number of (potentially complex) migration scripts on the ArangoDB server. Something like one would do in Arangosh, but it needs to be done from a Java application.
My first attempt was to utilize the db.transaction()
method. Unfortunately due to Arango's inability to create/delete collections and indices from inside a transaction it's not suitable for our needs.
Now I'm looking at the POST /_admin/execute
hoping that it does exactly what I need. But I cannot find a way to invoke this API via the Arango Java driver.
Is there any way to call POST /_admin/execute
from a Java driver?
Thanks!