[][src]Module arangors::connection

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").unwrap();
let conn =
    Connection::establish_basic_auth("http://localhost:8529", "username", "password").unwrap();
  • No authentication
This example is not tested
use arangors::Connection;
let conn = Connection::establish_without_auth("http://localhost:8529").unwrap();

Modules

model
role

Structs

Connection

Connection is the top level API for this crate. It contains a http client, information about auth, arangodb url, and a hash map of the databases Object. The databases Hashmap is construct once connections succeed.

Enums

Permission