pub struct SqliteGraphStore { /* private fields */ }Expand description
SQLite implementation of GraphStore (spike - uses existing connection)
Implementations§
Trait Implementations§
Source§impl GraphStore for SqliteGraphStore
impl GraphStore for SqliteGraphStore
Source§fn write_node(&self, node: &AinlMemoryNode) -> Result<(), String>
fn write_node(&self, node: &AinlMemoryNode) -> Result<(), String>
Write a node to storage
Source§fn query_by_type(&self, type_name: &str) -> Result<Vec<AinlMemoryNode>, String>
fn query_by_type(&self, type_name: &str) -> Result<Vec<AinlMemoryNode>, String>
Query nodes by type
Source§fn query_recent_episodes(
&self,
agent_id: &str,
limit: usize,
) -> Result<Vec<AinlMemoryNode>, String>
fn query_recent_episodes( &self, agent_id: &str, limit: usize, ) -> Result<Vec<AinlMemoryNode>, String>
Query recent episodes for an agent
Source§fn walk_edges(
&self,
from_id: Uuid,
label: &str,
) -> Result<Vec<AinlMemoryNode>, String>
fn walk_edges( &self, from_id: Uuid, label: &str, ) -> Result<Vec<AinlMemoryNode>, String>
Walk the graph from a starting node
Auto Trait Implementations§
impl !Freeze for SqliteGraphStore
impl !RefUnwindSafe for SqliteGraphStore
impl Send for SqliteGraphStore
impl !Sync for SqliteGraphStore
impl Unpin for SqliteGraphStore
impl UnsafeUnpin for SqliteGraphStore
impl !UnwindSafe for SqliteGraphStore
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