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._create(name)
- db._drop(name)
- db._query(query)
db._explain(query)Document
- db._exists(object)
- db._remove(selector)
- db._replace(selector,data)
- db._update(selector,data)