pub struct GraphStore { /* private fields */ }Implementations§
Source§impl GraphStore
impl GraphStore
pub fn open(path: &Path) -> Result<Self>
pub fn init_schema(&self) -> Result<()>
pub fn index_file(&self, path: &str) -> Result<()>
pub fn remove_file(&mut self, path: &str) -> Result<bool>
pub fn query_files(&self, term: &str) -> Result<Vec<String>>
pub fn upsert_symbol( &self, file_path: &str, name: &str, kind: &str, signature: &str, ) -> Result<i64>
pub fn search_symbols(&self, term: &str) -> Result<Vec<SymbolHit>>
pub fn find_symbols_by_exact_name( &self, name: &str, limit: usize, ) -> Result<Vec<SymbolHit>>
pub fn link_symbols( &self, src_symbol_id: i64, dst_symbol_id: i64, edge_type: &str, metadata_json: Option<&str>, ) -> Result<()>
pub fn add_snippet( &self, file_path: &str, symbol_name: Option<&str>, content: &str, ) -> Result<i64>
pub fn search_snippets( &self, term: &str, limit: usize, ) -> Result<Vec<SnippetHit>>
pub fn record_run(&self, command: &str, status: &str) -> Result<i64>
pub fn record_invocation_run(&self, run: &RunInsert) -> Result<i64>
pub fn recent_runs(&self, limit: usize) -> Result<Vec<RunRecord>>
pub fn record_failure( &self, run_id: i64, message: &str, root_cause: Option<&str>, ) -> Result<i64>
pub fn recent_failures(&self, limit: usize) -> Result<Vec<FailureRecord>>
pub fn record_decision(&self, title: &str, summary: &str) -> Result<i64>
pub fn recent_decisions(&self, limit: usize) -> Result<Vec<String>>
pub fn upsert_memory_directive( &self, key: &str, body: &str, scope: &str, source: &str, ) -> Result<i64>
pub fn get_memory_directive(&self, key: &str) -> Result<Option<MemoryDirective>>
pub fn list_memory_directives( &self, scope: Option<&str>, limit: usize, ) -> Result<Vec<MemoryDirective>>
pub fn search_memory_directives( &self, query: &str, limit: usize, ) -> Result<Vec<MemoryDirective>>
pub fn delete_memory_directive(&self, key: &str) -> Result<bool>
pub fn delete_memory_directives_by_prefix(&self, prefix: &str) -> Result<usize>
Auto Trait Implementations§
impl !Freeze for GraphStore
impl !RefUnwindSafe for GraphStore
impl Send for GraphStore
impl !Sync for GraphStore
impl Unpin for GraphStore
impl UnsafeUnpin for GraphStore
impl !UnwindSafe for GraphStore
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