pub struct SqliteCache { /* private fields */ }Implementations§
Source§impl SqliteCache
impl SqliteCache
Trait Implementations§
Source§impl CacheStore for SqliteCache
impl CacheStore for SqliteCache
Source§fn upsert_file(&self, path: &str, hash: &str, content: &[u8]) -> Result<i64>
fn upsert_file(&self, path: &str, hash: &str, content: &[u8]) -> Result<i64>
Insert or update a file and its content. Returns the file_id.
Source§fn get_file_hash(&self, path: &str) -> Result<Option<String>>
fn get_file_hash(&self, path: &str) -> Result<Option<String>>
Get a file’s hash to check if it has changed
Source§fn get_symbol_content(&self, symbol_id: &str) -> Result<Option<Vec<u8>>>
fn get_symbol_content(&self, symbol_id: &str) -> Result<Option<Vec<u8>>>
Retrieve the raw bytes of a symbol using SQLite substr()
Source§fn get_file_symbols(&self, path: &str) -> Result<Vec<(String, String)>>
fn get_file_symbols(&self, path: &str) -> Result<Vec<(String, String)>>
Get symbols for a file
Source§fn get_file_content(&self, path: &str) -> Result<Option<Vec<u8>>>
fn get_file_content(&self, path: &str) -> Result<Option<Vec<u8>>>
Get the raw content bytes of a file by path
Source§fn list_files_with_symbols(&self) -> Result<FileSymbolList>
fn list_files_with_symbols(&self) -> Result<FileSymbolList>
List all files with their associated symbols (kind, name), ordered by byte_offset
Auto Trait Implementations§
impl !Freeze for SqliteCache
impl !RefUnwindSafe for SqliteCache
impl Send for SqliteCache
impl !Sync for SqliteCache
impl Unpin for SqliteCache
impl UnsafeUnpin for SqliteCache
impl !UnwindSafe for SqliteCache
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