Arango v0.0.1 Arangoex.Database

ArangoDB Database methods

Summary

Functions

Create database

Information about a database

List of databases

Drop database

List of accessible databases

Types

t()
t() :: %Arangoex.Database{id: String.t, isSystem: boolean, name: String.t, path: String.t, users: [String.t]}

Functions

create(endpoint, db)
create(Arangoex.Endpoint.t, Database.t) :: Arangoex.ok_error(any)

Create database

POST /_api/database

database(endpoint, db)

Information about a database

GET /_api/database/current

databases(endpoint)

List of databases

GET /_api/database

drop(endpoint, db)
drop(%Arangoex.Endpoint{arrango_version: term, database_name: term, headers: term, host: term, password: term, port: term, scheme: term, use_auth: term, username: term}, String.t) :: Arangoex.ok_error(true)

Drop database

DELETE /_api/database/{database-name}

new(map_or_kwlist, opts \\ [])
new(ExConstructor.map_or_kwlist, Keyword.t) :: %Arangoex.Database{id: term, isSystem: term, name: term, path: term, users: term}
user_databases(endpoint)

List of accessible databases

GET /_api/database/user