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§
Sourcefn graph_query<Q, RT>(
&mut self,
graph: &str,
query: Q,
) -> RedisResult<GraphResponse<RT>>
fn graph_query<Q, RT>( &mut self, graph: &str, query: Q, ) -> RedisResult<GraphResponse<RT>>
Send a graph query
Sourcefn graph_query_void<Q>(
&mut self,
graph: &str,
query: Q,
) -> RedisResult<GraphResponse<()>>where
Q: Into<GraphQuery>,
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
Sourcefn labels(&mut self, graph: &str) -> RedisResult<Vec<String>>
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
Sourcefn property_keys(&mut self, graph: &str) -> RedisResult<Vec<String>>
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
Sourcefn relationship_types(&mut self, graph: &str) -> RedisResult<Vec<String>>
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.