[−][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") .await .unwrap(); let conn = Connection::establish_basic_auth("http://localhost:8529", "username", "password") .await .unwrap();
- No authentication
ⓘThis example is not tested
use arangors::Connection; let conn = Connection::establish_without_auth("http://localhost:8529").await.unwrap();
Modules
role |
Structs
DatabaseDetails | |
GenericConnection | Connection is the top level API for this crate. It contains a http client, information about authentication, arangodb url. |
Version |
Enums
Permission |
Type Definitions
Connection |