Trait GraphCommands

Source
pub trait GraphCommands: ConnectionLike + Sized {
    // Provided methods
    fn graph_query<Q, RT>(
        &mut self,
        graph: &str,
        query: Q,
    ) -> RedisResult<GraphResponse<RT>>
       where Q: Into<GraphQuery>,
             RT: FromGraphValue { ... }
    fn graph_query_void<Q>(
        &mut self,
        graph: &str,
        query: Q,
    ) -> RedisResult<GraphResponse<()>>
       where Q: Into<GraphQuery> { ... }
    fn labels(&mut self, graph: &str) -> RedisResult<Vec<String>> { ... }
    fn property_keys(&mut self, graph: &str) -> RedisResult<Vec<String>> { ... }
    fn relationship_types(&mut self, graph: &str) -> RedisResult<Vec<String>> { ... }
}
Expand description

Implements redis graph related commands for an synchronous connection

Provided Methods§

Source

fn graph_query<Q, RT>( &mut self, graph: &str, query: Q, ) -> RedisResult<GraphResponse<RT>>

Send a graph query

Source

fn graph_query_void<Q>( &mut self, graph: &str, query: Q, ) -> RedisResult<GraphResponse<()>>
where Q: Into<GraphQuery>,

Send a graph query and ignore the result data

Source

fn labels(&mut self, graph: &str) -> RedisResult<Vec<String>>

Returns a vector where the index is a label id and the value at that index is the corresponding label name

Source

fn property_keys(&mut self, graph: &str) -> RedisResult<Vec<String>>

Returns a vector where the index is a property key id and the value at that index is the corresponding property key name

Source

fn relationship_types(&mut self, graph: &str) -> RedisResult<Vec<String>>

Returns a vector where the index is a relationship id and the value at that index is the corresponding relationship name

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> GraphCommands for T
where T: ConnectionLike,