pub trait Graph {
Show 21 methods
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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;
}
Expand description
Database Operations
Required Methods§
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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