Reputation: 2058
When starting a new instance of ArangoDB, what is the best way to load in a database scheme?
I would like to define collections and indexes in a file, and then feed it to Arango somehow.
Upvotes: 4
Views: 315
Reputation: 286
You can use the option --javascript.execute
to run a javascript file in the arango shell.
https://docs.arangodb.com/3.11/components/tools/arangodb-shell/options/#--javascriptexecute
There is also a schema evolution tool that is based on XML:
https://github.com/deusdat/migrantverde (deprecated)
Replaced by:
https://github.com/deusdat/arangomigo
Upvotes: 5