Enum common::ProxyTransaction
[−]
[src]
pub enum ProxyTransaction {
Postgres(PostgresTransaction),
Rocksdb(RocksdbTransaction),
Memory(MemoryTransaction),
}Variants
Postgres(PostgresTransaction)Rocksdb(RocksdbTransaction)Memory(MemoryTransaction)
Trait Implementations
impl Debug for ProxyTransaction[src]
impl Transaction for ProxyTransaction[src]
fn get_vertices(&self, q: &VertexQuery) -> Result<Vec<Vertex>, Error>[src]
Gets a range of vertices specified by a query. Read more
fn create_vertex(&self, t: &Type) -> Result<Uuid, Error>[src]
Creates a new vertex. Read more
fn delete_vertices(&self, q: &VertexQuery) -> Result<(), Error>[src]
Deletes existing vertices specified by a query. Read more
fn get_vertex_count(&self) -> Result<u64, Error>[src]
Gets the number of vertices in the datastore..
fn create_edge(&self, key: &EdgeKey) -> Result<bool, Error>[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>, Error>[src]
Gets a range of edges specified by a query. Read more
fn delete_edges(&self, q: &EdgeQuery) -> Result<(), Error>[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, Error>[src]
&self,
id: Uuid,
type_filter: Option<&Type>,
direction: EdgeDirection
) -> Result<u64, Error>
Gets the number of edges associated with a vertex. Read more
fn get_global_metadata(&self, key: &str) -> Result<Option<JsonValue>, Error>[src]
Gets a global metadata value. Read more
fn set_global_metadata(&self, key: &str, value: &JsonValue) -> Result<(), Error>[src]
Sets a global metadata value. Read more
fn delete_global_metadata(&self, key: &str) -> Result<(), Error>[src]
Deletes a global metadata value. Read more
fn get_vertex_metadata(
&self,
q: &VertexQuery,
key: &str
) -> Result<Vec<VertexMetadata>, Error>[src]
&self,
q: &VertexQuery,
key: &str
) -> Result<Vec<VertexMetadata>, Error>
Gets a vertex metadata value. Read more
fn set_vertex_metadata(
&self,
q: &VertexQuery,
key: &str,
value: &JsonValue
) -> Result<(), Error>[src]
&self,
q: &VertexQuery,
key: &str,
value: &JsonValue
) -> Result<(), Error>
Sets a vertex metadata value. Read more
fn delete_vertex_metadata(
&self,
q: &VertexQuery,
key: &str
) -> Result<(), Error>[src]
&self,
q: &VertexQuery,
key: &str
) -> Result<(), Error>
Deletes a vertex metadata value. Read more
fn get_edge_metadata(
&self,
q: &EdgeQuery,
key: &str
) -> Result<Vec<EdgeMetadata>, Error>[src]
&self,
q: &EdgeQuery,
key: &str
) -> Result<Vec<EdgeMetadata>, Error>
Gets an edge metadata value. Read more
fn set_edge_metadata(
&self,
q: &EdgeQuery,
key: &str,
value: &JsonValue
) -> Result<(), Error>[src]
&self,
q: &EdgeQuery,
key: &str,
value: &JsonValue
) -> Result<(), Error>
Sets an edge metadata value. Read more
fn delete_edge_metadata(&self, q: &EdgeQuery, key: &str) -> Result<(), Error>[src]
Deletes an edge metadata value. Read more