Skip to main content

SqliteStore

Struct SqliteStore 

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

Implementations§

Source§

impl SqliteStore

Source

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

Source

pub fn path(&self) -> &Path

Trait Implementations§

Source§

impl GraphStore for SqliteStore

Source§

impl HistoryStore for SqliteStore

Source§

impl MetadataStore for SqliteStore

Source§

fn initialize(&self) -> Result<()>

Source§

fn put_manifest(&self, manifest: &IndexManifest) -> Result<()>

Source§

fn manifest(&self) -> Result<Option<IndexManifest>>

Source§

fn replace_index(&self, data: IndexData<'_>) -> Result<()>

Source§

fn replace_files_index(&self, update: PartialIndexUpdate<'_>) -> Result<()>

Source§

fn list_files(&self, limit: usize, offset: usize) -> Result<Vec<File>>

Source§

fn get_file_by_path(&self, path: &Path) -> Result<Option<File>>

Source§

fn list_symbols( &self, query: Option<&str>, limit: usize, offset: usize, ) -> Result<Vec<Symbol>>

Source§

fn symbol_by_id(&self, id: &SymbolId) -> Result<Option<Symbol>>

Source§

fn chunks_for_file(&self, file_id: &FileId) -> Result<Vec<CodeChunk>>

Source§

fn all_chunks(&self) -> Result<Vec<CodeChunk>>

Source§

fn tests(&self) -> Result<Vec<TestTarget>>

Source§

fn imports(&self) -> Result<Vec<Import>>

Source§

fn analysis_facts( &self, source_type: Option<EvidenceSourceType>, limit: usize, ) -> Result<Vec<AnalysisFact>>

Source§

fn references_for_symbol( &self, id: &SymbolId, limit: usize, ) -> Result<Vec<SymbolOccurrence>>

Source§

fn occurrences_for_file( &self, file_id: &FileId, ) -> Result<Vec<SymbolOccurrence>>

Source§

fn symbols_for_file(&self, file_id: &FileId) -> Result<Vec<Symbol>>

Source§

fn find_chunks_containing( &self, query: &str, limit: usize, ) -> Result<Vec<CodeChunk>>

Source§

fn find_files_by_path_pattern(&self, pattern: &str) -> Result<Vec<File>>

Source§

fn tests_for_files(&self, file_ids: &[FileId]) -> Result<Vec<TestTarget>>

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> OkStore for T

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.