Struct ruarango::Connection
source · pub struct Connection { /* private fields */ }
Expand description
An ArangoDB
connection implementing the database operation traits
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Collection for Connection
impl Collection for Connection
source§fn collections<'life0, 'async_trait>(
&'life0 self,
exclude_system: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<Collections>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn collections<'life0, 'async_trait>(
&'life0 self,
exclude_system: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<Collections>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns a vector of collection descriptions Read more
source§fn collection<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Coll>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn collection<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Coll>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return information about a single collection
source§fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config
) -> Pin<Box<dyn Future<Output = ArangoResult<Create>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 Config
) -> Pin<Box<dyn Future<Output = ArangoResult<Create>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a collection
source§fn drop<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
is_system: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Drop>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn drop<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
is_system: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Drop>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Drop a collection
source§fn checksum<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
with_revisions: bool,
with_data: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Checksum>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn checksum<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
with_revisions: bool,
with_data: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Checksum>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Will calculate a checksum of the meta-data (keys and optionally revision ids and
optionally the document data) in the collection. Read more
source§fn count<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Count>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn count<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Count>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The number of documents in the collection.
Note - this will always load the collection into memory.
source§fn figures<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Figures>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn figures<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Figures>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Some figures and additional statistical information about the collection.
source§fn revision<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Revision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn revision<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Revision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the revision id for a collection
The revision id is a server-generated string that clients can use to
check whether data in a collection has changed since the last revision check.
source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
include_count: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Load>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
include_count: bool
) -> Pin<Box<dyn Future<Output = ArangoResult<Load>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Loads a collection into memory.
source§fn load_indexes<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<LoadIndexes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_indexes<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<LoadIndexes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
load_indexes
tries to cache all index entries of this collection into memory. Read moresource§fn modify_props<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
props: Props
) -> Pin<Box<dyn Future<Output = ArangoResult<ModifyProps>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn modify_props<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
props: Props
) -> Pin<Box<dyn Future<Output = ArangoResult<ModifyProps>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Change the properties of a collection Read more
source§fn recalculate_count<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<RecalculateCount>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recalculate_count<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<RecalculateCount>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Recalculates the document count of a collection, if it ever becomes inconsistent. Read more
source§fn rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
new_name: &'life2 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Rename>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
new_name: &'life2 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Rename>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Renames a collection
source§fn truncate<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Truncate>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn truncate<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Truncate>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Removes all documents from the collection, but leaves the indexes intact.
source§fn unload<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Unload>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unload<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Unload>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Removes a collection from memory. This call does not delete any documents.
You can use the collection afterwards, in which case it will be loaded into
memory.
source§impl Cursor for Connection
impl Cursor for Connection
source§fn create<'life0, 'async_trait, T>(
&'life0 self,
config: CreateConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<CursorMeta<T>>> + Send + 'async_trait>>where
T: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait, T>(
&'life0 self,
config: CreateConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<CursorMeta<T>>> + Send + 'async_trait>>where
T: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Create a cursor
source§fn delete<'life0, 'async_trait>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a cursor
source§fn next<'life0, 'async_trait, T>(
&'life0 self,
config: NextConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<CursorMeta<T>>> + Send + 'async_trait>>where
T: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn next<'life0, 'async_trait, T>(
&'life0 self,
config: NextConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<CursorMeta<T>>> + Send + 'async_trait>>where
T: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Grab the next batch from an open cursor
source§impl Database for Connection
impl Database for Connection
source§fn current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Current>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Current>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves the properties of the current database
source§fn user<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn user<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves the list of all databases the current user can access without specifying a different username or password.
source§fn list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves the list of all existing databases
Note: retrieving the list of databases is only possible from within the _system database.
Note: You should use the
GET user API
to fetch the list of the available databases now.source§fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
create: &'life1 Create
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
create: &'life1 Create
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates a new database
Note: creating a new database is only possible from within the _system database.
source§fn drop<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn drop<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Drops the database along with all data stored in it.
Note: dropping a database is only possible from within the _system database.
The _system database itself cannot be dropped.
source§impl Debug for Connection
impl Debug for Connection
source§impl Document for Connection
impl Document for Connection
source§fn create<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Create a document
source§fn creates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn creates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Create multiple documents
source§fn read<'life0, 'async_trait, T>(
&'life0 self,
config: ReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<T>> + Send + 'async_trait>>where
T: DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait, T>(
&'life0 self,
config: ReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<T>> + Send + 'async_trait>>where
T: DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Read a document
source§fn reads<'life0, 'async_trait, T, U>(
&'life0 self,
config: ReadsConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoVecResult<U>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn reads<'life0, 'async_trait, T, U>(
&'life0 self,
config: ReadsConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoVecResult<U>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Read multiple documents
source§fn replace<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplaceConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn replace<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplaceConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Replace a docment with the given document
source§fn replaces<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplacesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn replaces<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplacesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Replace multiple documents
source§fn update<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Update the given data in the given document
source§fn updates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn updates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Update the given data in the given documents
source§fn delete<'life0, 'async_trait, U, V>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait, U, V>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Delete the given docment
source§fn deletes<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: DeletesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn deletes<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: DeletesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Deletes the given docments
source§impl Graph for Connection
impl Graph for Connection
source§fn list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<List>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<List>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all graphs
source§fn create<'life0, 'async_trait>(
&'life0 self,
config: CreateConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
config: CreateConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a graph
source§fn read<'life0, 'async_trait>(
&'life0 self,
config: ReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 self,
config: ReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read a graph
source§fn delete<'life0, 'async_trait>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a graph
source§fn create_edge_def<'life0, 'async_trait>(
&'life0 self,
config: CreateEdgeDefConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_edge_def<'life0, 'async_trait>(
&'life0 self,
config: CreateEdgeDefConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an edge definition
source§fn read_edge_defs<'life0, 'async_trait>(
&'life0 self,
config: ReadEdgeDefsConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<EdgesMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_edge_defs<'life0, 'async_trait>(
&'life0 self,
config: ReadEdgeDefsConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<EdgesMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the edge definitions for the given graph
source§fn delete_edge_def<'life0, 'async_trait>(
&'life0 self,
config: DeleteEdgeDefConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_edge_def<'life0, 'async_trait>(
&'life0 self,
config: DeleteEdgeDefConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete an edge definition
source§fn replace_edge_def<'life0, 'async_trait>(
&'life0 self,
config: ReplaceEdgeDefConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn replace_edge_def<'life0, 'async_trait>(
&'life0 self,
config: ReplaceEdgeDefConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Replace an edge definition
source§fn create_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeCreateConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<CreateEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeCreateConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<CreateEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an edge for a graph
source§fn delete_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeDeleteConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeDeleteConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete an edge from a graph
source§fn read_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_edge<'life0, 'async_trait>(
&'life0 self,
config: EdgeReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadEdge>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read an edge from a graph
source§fn update_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeUpdateConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateEdge>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn update_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeUpdateConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateEdge>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Update an edge from a graph
source§fn replace_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeReplaceConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<ReplaceEdge>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn replace_edge<'life0, 'async_trait, T>(
&'life0 self,
config: EdgeReplaceConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<ReplaceEdge>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Replace an edge from a graph
source§fn read_vertex_colls<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexCollsConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexColls>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_vertex_colls<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexCollsConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexColls>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the vertex collections from a graph
source§fn create_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: CreateVertexCollConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: CreateVertexCollConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create vertex collection
source§fn delete_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexCollConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_vertex_coll<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexCollConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<GraphMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete vertex collection
source§fn create_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: CreateVertexConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexMeta>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn create_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: CreateVertexConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<VertexMeta>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Create vertex
source§fn delete_vertex<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_vertex<'life0, 'async_trait>(
&'life0 self,
config: DeleteVertexConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<DeleteVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete a vertex
source§fn read_vertex<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_vertex<'life0, 'async_trait>(
&'life0 self,
config: ReadVertexConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<ReadVertexMeta>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read a vertex
source§fn update_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn update_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Update vertex
source§fn replace_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn replace_vertex<'life0, 'async_trait, T>(
&'life0 self,
config: UpdateVertexConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoResult<UpdateVertexMeta>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Replace vertex
source§impl Job for Connection
impl Job for Connection
source§fn status<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<u16>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn status<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<u16>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the processing status of the specified job. The processing status
can be determined by checking the HTTP response code. Read more
source§fn fetch<'life0, 'life1, 'async_trait, T>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>where
T: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch<'life0, 'life1, 'async_trait, T>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>where
T: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Docs