The “db” Object
The db
object is available in arangosh bydefault, and can also be imported and used in Foxx services.
db.name returns a collection object for the collection name.
The following methods exists on the _db object:
Database
- db._createDatabase(name, options, users)
- db._databases()
- db._dropDatabase(name, options, users)
db._useDatabase(name)Indexes
db._dropIndex(index)Properties
- db._isSystem()
- db._name()
- db._path()
db._version()Collection
- db._collections()
- db._create(name)
- db._drop(name)
- db._query(query)
- db._explain(query)
db._parse(query)Document
- db._exists(object)
- db._remove(selector)
- db._replace(selector,data)
- db._views()
- db._createView(name, type, properties)
db._dropView(name)Global
- db._engineStats()
- db._executeTransaction()