Database class
Methods
-
aql()
→ Aql
-
Returns an Aql object in order to use AQL query
-
close()
→ void
-
Close the connection to the db
-
collection(String name)
→ Future<Collection?>
-
Returns a collection of the db
-
collections()
→ Future<Map<String, dynamic>?>
-
Returns all collections
-
connect(dynamic db_name, dynamic username, dynamic password, {bool useBasic = true})
→ Future<bool>
-
Connect to the db
-
create(Map<String, dynamic> data)
→ Future<Map<String, dynamic>?>
-
Create a database
-
createCollection(Map<String, dynamic> data)
→ Future<Collection?>
-
Create collection
-
createGraph(Map<String, dynamic> data)
→ Future<Graph?>
-
Create graph
-
current()
→ Future<Map<String, dynamic>?>
-
Retrieve the current database information
-
databases()
→ Future<Map<String, dynamic>?>
-
Retrieves a list of all existing databases
-
drop(String database_name)
→ Future<Map<String, dynamic>?>
-
Drop a database
-
edges(String collection, String vertex, {String? direction})
→ Future<Map<String, dynamic>?>
-
Returns all edges
-
graph(String name)
→ Future<Graph?>
-
Returns an Graph object in order to use graph
-
graphs()
→ Future<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()
→ Future<Map<String, dynamic>?>
-
Retrieves a list of all databases the current user can access