pub struct InMemoryGraphStore { /* private fields */ }Trait Implementations§
Source§impl Default for InMemoryGraphStore
impl Default for InMemoryGraphStore
Source§fn default() -> InMemoryGraphStore
fn default() -> InMemoryGraphStore
Returns the “default value” for a type. Read more
Source§impl GraphStore for InMemoryGraphStore
impl GraphStore for InMemoryGraphStore
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
_query: GraphQuery,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
_query: GraphQuery,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a query and return JSON results.
Source§fn upsert_node<'life0, 'async_trait>(
&'life0 self,
node: GraphNode,
) -> Pin<Box<dyn Future<Output = Result<(), GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upsert_node<'life0, 'async_trait>(
&'life0 self,
node: GraphNode,
) -> Pin<Box<dyn Future<Output = Result<(), GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Upsert a node into the store.
Source§fn upsert_edge<'life0, 'async_trait>(
&'life0 self,
edge: GraphEdge,
) -> Pin<Box<dyn Future<Output = Result<(), GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upsert_edge<'life0, 'async_trait>(
&'life0 self,
edge: GraphEdge,
) -> Pin<Box<dyn Future<Output = Result<(), GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Upsert an edge into the store.
Source§fn get_node<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<GraphNode>, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_node<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<GraphNode>, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a node by id.
Source§fn neighbors<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<GraphNode>, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn neighbors<'life0, 'life1, 'async_trait>(
&'life0 self,
node_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<GraphNode>, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return immediate neighbor nodes for
node_id.Source§fn traverse<'life0, 'life1, 'async_trait>(
&'life0 self,
start: &'life1 str,
max_depth: usize,
) -> Pin<Box<dyn Future<Output = Result<GraphSubgraph, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn traverse<'life0, 'life1, 'async_trait>(
&'life0 self,
start: &'life1 str,
max_depth: usize,
) -> Pin<Box<dyn Future<Output = Result<GraphSubgraph, GraphDbError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Traverse from
start and return a GraphSubgraph up to max_depth.Auto Trait Implementations§
impl Freeze for InMemoryGraphStore
impl !RefUnwindSafe for InMemoryGraphStore
impl Send for InMemoryGraphStore
impl Sync for InMemoryGraphStore
impl Unpin for InMemoryGraphStore
impl UnsafeUnpin for InMemoryGraphStore
impl !UnwindSafe for InMemoryGraphStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more