pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn open_readonly(path: impl AsRef<Path>) -> Result<Self>
pub fn index_session(&self, parsed: &ParsedSession) -> Result<()>
pub fn stats(&self) -> Result<Stats>
pub fn quick_check(&self) -> Result<String>
pub fn fts_integrity_check(&self) -> Result<()>
pub fn fts_read_check(&self) -> Result<()>
pub fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchResult>>
pub fn search_with_options( &self, options: SearchOptions, ) -> Result<Vec<SearchResult>>
pub fn resolve_session_reference( &self, reference: &str, ) -> Result<Vec<SessionMatch>>
pub fn recent_sessions( &self, options: RecentOptions, ) -> Result<Vec<RecentSession>>
pub fn session_events( &self, session_key: &str, limit: usize, ) -> Result<Vec<SessionEvent>>
pub fn session_events_with_kinds( &self, session_key: &str, limit: usize, kinds: &[EventKind], ) -> Result<Vec<SessionEvent>>
pub fn session_repos(&self, session_key: &str) -> Result<Vec<String>>
pub fn is_source_current( &self, source_file_path: &Path, source_file_mtime_ns: i64, source_file_size: i64, ) -> Result<bool>
pub fn mark_source_indexed( &self, source_file_path: &Path, source_file_mtime_ns: i64, source_file_size: i64, session_id: Option<&str>, session_key: Option<&str>, ) -> Result<()>
pub fn last_indexed_at(&self) -> Result<Option<String>>
Auto Trait Implementations§
impl !Freeze for Store
impl !RefUnwindSafe for Store
impl Send for Store
impl !Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl !UnwindSafe for Store
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