Struct indradb::MemoryTransaction
[−]
[src]
pub struct MemoryTransaction { /* fields omitted */ }
A transaction for manipulating in-memory-only datastores.
Trait Implementations
impl Debug for MemoryTransaction
[src]
impl Transaction for MemoryTransaction
[src]
fn create_vertex(&self, t: &Type) -> Result<Uuid>
[src]
Creates a new vertex. Read more
fn get_vertices(&self, q: &VertexQuery) -> Result<Vec<Vertex>>
[src]
Gets a range of vertices specified by a query. Read more
fn delete_vertices(&self, q: &VertexQuery) -> Result<()>
[src]
Deletes existing vertices specified by a query. Read more
fn get_vertex_count(&self) -> Result<u64>
[src]
Gets the number of vertices in the datastore..
fn create_edge(&self, key: &EdgeKey) -> Result<bool>
[src]
Creates a new edge. If the edge already exists, this will update it with a new update datetime. Returns whether the edge was successfully created - if this is false, it's because one of the specified vertices is missing. Read more
fn get_edges(&self, q: &EdgeQuery) -> Result<Vec<Edge>>
[src]
Gets a range of edges specified by a query. Read more
fn delete_edges(&self, q: &EdgeQuery) -> Result<()>
[src]
Deletes a set of edges specified by a query. Read more
fn get_edge_count(
&self,
id: Uuid,
type_filter: Option<&Type>,
direction: EdgeDirection
) -> Result<u64>
[src]
&self,
id: Uuid,
type_filter: Option<&Type>,
direction: EdgeDirection
) -> Result<u64>
Gets the number of edges associated with a vertex. Read more
fn get_global_metadata(&self, name: &str) -> Result<Option<JsonValue>>
[src]
Gets a global metadata value. Read more
fn set_global_metadata(&self, name: &str, value: &JsonValue) -> Result<()>
[src]
Sets a global metadata value. Read more
fn delete_global_metadata(&self, name: &str) -> Result<()>
[src]
Deletes a global metadata value. Read more
fn get_vertex_metadata(
&self,
q: &VertexQuery,
name: &str
) -> Result<Vec<VertexMetadata>>
[src]
&self,
q: &VertexQuery,
name: &str
) -> Result<Vec<VertexMetadata>>
Gets a vertex metadata value. Read more
fn set_vertex_metadata(
&self,
q: &VertexQuery,
name: &str,
value: &JsonValue
) -> Result<()>
[src]
&self,
q: &VertexQuery,
name: &str,
value: &JsonValue
) -> Result<()>
Sets a vertex metadata value. Read more
fn delete_vertex_metadata(&self, q: &VertexQuery, name: &str) -> Result<()>
[src]
Deletes a vertex metadata value. Read more
fn get_edge_metadata(
&self,
q: &EdgeQuery,
name: &str
) -> Result<Vec<EdgeMetadata>>
[src]
&self,
q: &EdgeQuery,
name: &str
) -> Result<Vec<EdgeMetadata>>
Gets an edge metadata value. Read more
fn set_edge_metadata(
&self,
q: &EdgeQuery,
name: &str,
value: &JsonValue
) -> Result<()>
[src]
&self,
q: &EdgeQuery,
name: &str,
value: &JsonValue
) -> Result<()>
Sets an edge metadata value. Read more
fn delete_edge_metadata(&self, q: &EdgeQuery, name: &str) -> Result<()>
[src]
Deletes an edge metadata value. Read more