Module arangors::connection
source · Expand description
Top level connection object that hold a http client (either synchronous or asynchronous), arango URL, and buffered accessible databases object.
Establishing connections
There is three way to establish connections:
- jwt
- basic auth
- no authentication
So are the arangors
API:
Example:
- With authentication
use arangors::Connection;
let conn = Connection::establish_jwt("http://localhost:8529", "username", "password")
.await
.unwrap();
let conn = Connection::establish_basic_auth("http://localhost:8529", "username", "password")
.await
.unwrap();
- No authentication
ⓘ
use arangors::Connection;
let conn = Connection::establish_without_auth("http://localhost:8529").await.unwrap();
Modules
Structs
- Connection is the top level API for this crate. It contains a http client, information about authentication, arangodb url.