Database

Database is an abstraction over a single one database within ArangoDB. With basic API you can create, delete or get details about particular database.

Note

Currently ArangoDB REST API support of getting list of databases. Driver doesn’t support this functionality at the moment. However it’s quite easy to implement using conn.connection.client and conn.url(db_prefix=False).

from arango import create

c = create(db="test")
c.database.create()

c.database.info["name"] == "test"
c.database.delete()
class arango.db.Database(connection, name)

ArangoDB starting from version 1.4 work with multiple databases. This is abstraction to manage multiple databases and work within documents.

create(ignore_exist=True)

Create new database and return instance

delete(ignore_exist=True)

Delete database

info

Get info about database