Skip to content

Instantly share code, notes, and snippets.

View bvenkatr's full-sized avatar
🏠
Working from home

Venkat bvenkatr

🏠
Working from home
View GitHub Profile
// 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;