Skip to main content

Store

Struct Store 

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

Implementations§

Source§

impl Store

Source

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

Source

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

Source

pub fn index_session(&self, parsed: &ParsedSession) -> Result<()>

Source

pub fn stats(&self) -> Result<Stats>

Source

pub fn quick_check(&self) -> Result<String>

Source

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

Source

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

Source

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

Source

pub fn search_with_options( &self, options: SearchOptions, ) -> Result<Vec<SearchResult>>

Source

pub fn resolve_session_reference( &self, reference: &str, ) -> Result<Vec<SessionMatch>>

Source

pub fn recent_sessions( &self, options: RecentOptions, ) -> Result<Vec<RecentSession>>

Source

pub fn session_events( &self, session_key: &str, limit: usize, ) -> Result<Vec<SessionEvent>>

Source

pub fn session_events_with_kinds( &self, session_key: &str, limit: usize, kinds: &[EventKind], ) -> Result<Vec<SessionEvent>>

Source

pub fn session_repos(&self, session_key: &str) -> Result<Vec<String>>

Source

pub fn is_source_current( &self, source_file_path: &Path, source_file_mtime_ns: i64, source_file_size: i64, ) -> Result<bool>

Source

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<()>

Source

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> 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.