This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this script will copy all AQL user functions from the _system database of an ArangoDB server | |
| // into all other databases of the server. Database names and authentication credentials must | |
| // be specified in the script in the "databases" variable | |
| // | |
| // invoke the script from ArangoShell like this: | |
| // require("internal").load("copy-aqlfunctions.js"); | |
| (function () { | |
| var db = require("org/arangodb").db; | |
| var print = require("internal").print; |
NewerOlder