clarango.core
connection-set?
(connection-set?)
Returns true if a connection is set.
get-connection
(get-connection)
Returns the db server connection map to other namespaces.
set-connection!
(set-connection!)
(set-connection! connection-map)
Connects permanently to an ArangoDB host by setting the connection map as a global variable.
If called without arguments set default connection at localhost:8529 with _system db.
set-connection-url!
(set-connection-url! connection-url)
Sets the server url.
set-default-collection!
(set-default-collection! collection-name)
Sets a default collection.
set-default-db!
(set-default-db! database-name)
Sets a default database.
set-default-graph!
(set-default-graph! graph-name)
Sets a default graph.
with-collection
macro
(with-collection collection-name & body)
Dynamically rebinds the default collection value.
Takes a body of code which will be executed in the context of this collection.
with-connection
macro
(with-connection connection & body)
Dynamically rebinds the global connection map.
Takes a body of code which will be executed in the context of this connection.
with-db
macro
(with-db database-name & body)
Dynamically rebinds the default database value.
Takes a body of code which will be executed in the context of this database.
with-graph
macro
(with-graph graph-name & body)
Dynamically rebinds the default graph value.
Takes a body of code which will be executed in the context of this graph.