A class for managing ArangoDB Databases
This class provides functions to manage Databases through ArangoDB's Database API
| link | https://docs.arangodb.com/HTTP/Database/index.html |
|---|---|
| package | ArangoDBClient |
| since | 1.4 |
create(\ArangoDBClient\Connection $connection, string $name) : array
This creates a new database
| link | https://docs.arangodb.com/HTTP/Database/index.html |
|---|
\ArangoDBClient\Connectionstring\ArangoDBClient\Exception |
|
|---|---|
\ArangoDBClient\ClientException |
array$responseArray - The response array.databases(\ArangoDBClient\Connection $connection) : array
This will list the databases that exist on the server
| link | https://docs.arangodb.com/HTTP/Database/index.html |
|---|
\ArangoDBClient\Connection\ArangoDBClient\Exception |
|
|---|---|
\ArangoDBClient\ClientException |
array$responseArray - The response array.delete(\ArangoDBClient\Connection $connection, string $name) : array
This will delete an existing database.
| link | https://docs.arangodb.com/HTTP/Database/index.html |
|---|
\ArangoDBClient\Connectionstring\ArangoDBClient\Exception |
|
|---|---|
\ArangoDBClient\ClientException |
array$responseArray - The response array.getInfo(\ArangoDBClient\Connection $connection) : array
This will get information about the currently used database from the server
| link | https://docs.arangodb.com/HTTP/Database/index.html |
|---|
\ArangoDBClient\Connection\ArangoDBClient\Exception |
|
|---|---|
\ArangoDBClient\ClientException |
array$responseArray - The response array.listDatabases(\ArangoDBClient\Connection $connection) : array
This will list the databases that exist on the server
| link | https://docs.arangodb.com/HTTP/Database/index.html |
|---|
\ArangoDBClient\Connection\ArangoDBClient\Exception |
|
|---|---|
\ArangoDBClient\ClientException |
array$responseArray - The response array.listUserDatabases(\ArangoDBClient\Connection $connection) : array
Retrieves the list of all databases the current user can access without specifying a different username or password.
| link | https://docs.arangodb.com/HTTP/Database/index.html |
|---|
\ArangoDBClient\Connection\ArangoDBClient\Exception |
|
|---|---|
\ArangoDBClient\ClientException |
array$responseArray - The response array.ENTRY_DATABASE_NAME = 'name'
ENTRY_DATABASE_USERS = 'users'