Database class

Constructors

Database(String url)

Properties

auth String?
getter/setter pair
client ArangoClient
getter/setter pair
db_name String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
isSystem bool
getter/setter pair
path String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ConnectionState
getter/setter pair
uri Uri
getter/setter pair
url String
final

Methods

aql() Aql
Returns an Aql object in order to use AQL query
close() → void
Close the connection to the db
collection(String name) FutureOr<Collection?>
Returns a collection of the db
collections() FutureOr<Map<String, dynamic>?>
Returns all collections
connect(dynamic db_name, dynamic username, dynamic password, {bool useBasic = true}) FutureOr<bool>
Connect to the db
create(Map<String, dynamic> data) FutureOr<Map<String, dynamic>?>
Create a database
createCollection(Map<String, dynamic> data) FutureOr<Collection?>
Create collection
createGraph(Map<String, dynamic> data) FutureOr<Graph?>
Create graph
current() FutureOr<Map<String, dynamic>?>
Retrieve the current database information
databases() FutureOr<Map<String, dynamic>?>
Retrieves a list of all existing databases
drop(String database_name) FutureOr<Map<String, dynamic>?>
Drop a database
edges(String collection, String vertex, {String? direction}) FutureOr<Map<String, dynamic>?>
Returns all edges
graph(String name) FutureOr<Graph?>
Returns an Graph object in order to use graph
graphs() FutureOr<Map<String, dynamic>?>
Returns all graphs
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transaction() Transaction
Returns an Transaction object in order to use transaction
users() FutureOr<Map<String, dynamic>?>
Retrieves a list of all databases the current user can access

Operators

operator ==(Object other) bool
The equality operator.
inherited