Skip to main content

GraphStore

Struct GraphStore 

Source
pub struct GraphStore { /* private fields */ }

Implementations§

Source§

impl GraphStore

Source

pub fn open(path: &Path) -> Result<Self>

Source

pub fn init_schema(&self) -> Result<()>

Source

pub fn index_file(&self, path: &str) -> Result<()>

Source

pub fn remove_file(&mut self, path: &str) -> Result<bool>

Source

pub fn query_files(&self, term: &str) -> Result<Vec<String>>

Source

pub fn upsert_symbol( &self, file_path: &str, name: &str, kind: &str, signature: &str, ) -> Result<i64>

Source

pub fn search_symbols(&self, term: &str) -> Result<Vec<SymbolHit>>

Source

pub fn find_symbols_by_exact_name( &self, name: &str, limit: usize, ) -> Result<Vec<SymbolHit>>

Source

pub fn related_symbols( &self, symbol_name: &str, limit: usize, ) -> Result<Vec<SymbolHit>>

Source

pub fn add_snippet( &self, file_path: &str, symbol_name: Option<&str>, content: &str, ) -> Result<i64>

Source

pub fn search_snippets( &self, term: &str, limit: usize, ) -> Result<Vec<SnippetHit>>

Source

pub fn record_run(&self, command: &str, status: &str) -> Result<i64>

Source

pub fn record_invocation_run(&self, run: &RunInsert) -> Result<i64>

Source

pub fn recent_runs(&self, limit: usize) -> Result<Vec<RunRecord>>

Source

pub fn record_failure( &self, run_id: i64, message: &str, root_cause: Option<&str>, ) -> Result<i64>

Source

pub fn recent_failures(&self, limit: usize) -> Result<Vec<FailureRecord>>

Source

pub fn record_decision(&self, title: &str, summary: &str) -> Result<i64>

Source

pub fn recent_decisions(&self, limit: usize) -> Result<Vec<String>>

Source

pub fn upsert_memory_directive( &self, key: &str, body: &str, scope: &str, source: &str, ) -> Result<i64>

Source

pub fn get_memory_directive(&self, key: &str) -> Result<Option<MemoryDirective>>

Source

pub fn list_memory_directives( &self, scope: Option<&str>, limit: usize, ) -> Result<Vec<MemoryDirective>>

Source

pub fn search_memory_directives( &self, query: &str, limit: usize, ) -> Result<Vec<MemoryDirective>>

Source

pub fn delete_memory_directive(&self, key: &str) -> Result<bool>

Source

pub fn delete_memory_directives_by_prefix(&self, prefix: &str) -> Result<usize>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.