-
Notifications
You must be signed in to change notification settings - Fork 6
Server Management
Francis Chuang edited this page May 19, 2013
·
2 revisions
Paradox comes with methods to manage users and server administration.
Currently, ArangoDB does not perform any authentication when clients connect to the server. Nevertheless, it has a users infrastructure implemented.
The following demonstrates how to manage users:
$client->createUser('john', 'password', true, array('age' => 20)); //Create a user
$client->changePassword('john', 'password1'); //Change the password
$client->setUserActive('john', false); //Disable the account
$client->updateUserData('john', array('age' => 25)); //Update the user data
$info = $client->getUserInfo('john'); //Get info about the user$client->getVersion(); //Get the server version
$client->getTime(); //Get the server time
$client->getServerInfo(); //Get detailed info about the server$client->createAQLFunction('mynamespace:helloworld', 'function(){ return "hello world!"}'); //Register a function
$client->listAQLFunctions(); //List all registered functions
$client->listAQLFunctions('mynamespace'); //List all registered functions in 'mynamespace'
$client->deleteAQLFunction('mynamespace:helloworld'); //Delete the function
$client->deleteAQLFunctionsByNamespace('mynamespace'); //Delete all functions in the 'mynamespace' namespace if they existStatistics are coming soon.