pub struct SqliteStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for SqliteStore
impl Clone for SqliteStore
Source§fn clone(&self) -> SqliteStore
fn clone(&self) -> SqliteStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqliteStore
impl Debug for SqliteStore
Source§impl GraphStore for SqliteStore
impl GraphStore for SqliteStore
fn upsert_file(&self, file: &FileNode) -> Result<()>
fn upsert_symbol(&self, symbol: &SymbolNode) -> Result<()>
fn upsert_edge(&self, edge: &Edge) -> Result<()>
fn get_file(&self, path: &Path) -> Result<Option<FileNode>>
fn get_symbol(&self, qualified_name: &str) -> Result<Option<SymbolNode>>
fn get_edges_from(&self, source: &str) -> Result<Vec<Edge>>
fn get_edges_to(&self, target: &str) -> Result<Vec<Edge>>
fn all_files(&self) -> Result<Vec<FileNode>>
fn all_symbols(&self) -> Result<Vec<SymbolNode>>
fn all_edges(&self) -> Result<Vec<Edge>>
fn remove_file(&self, path: &Path) -> Result<()>
fn remove_symbols_in_file(&self, path: &Path) -> Result<()>
fn find_by_name(&self, pattern: &str) -> Result<Vec<SymbolNode>>
fn stats(&self) -> Result<GraphStats>
Source§fn store_file_data(
&self,
file: &FileNode,
symbols: &[SymbolNode],
edges: &[Edge],
) -> Result<()>
fn store_file_data( &self, file: &FileNode, symbols: &[SymbolNode], edges: &[Edge], ) -> Result<()>
Store a file and all its symbols and edges atomically.
Source§fn symbols_for_files(&self, paths: &[&Path]) -> Result<Vec<SymbolNode>>
fn symbols_for_files(&self, paths: &[&Path]) -> Result<Vec<SymbolNode>>
Returns symbols only for the specified file paths.
Source§impl SearchIndex for SqliteStore
impl SearchIndex for SqliteStore
Source§impl VectorStore for SqliteStore
impl VectorStore for SqliteStore
fn store_embeddings(&self, entries: &[EmbeddingEntry]) -> Result<()>
fn search_nearest( &self, query_vec: &[f32], limit: usize, ) -> Result<Vec<(String, f64)>>
fn has_embeddings(&self) -> bool
fn count(&self) -> Result<usize>
fn remove_embeddings(&self, qualified_names: &[&str]) -> Result<()>
Auto Trait Implementations§
impl Freeze for SqliteStore
impl !RefUnwindSafe for SqliteStore
impl Send for SqliteStore
impl Sync for SqliteStore
impl Unpin for SqliteStore
impl UnsafeUnpin for SqliteStore
impl !UnwindSafe for SqliteStore
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