pub struct AnchorIndex { /* private fields */ }Implementations§
Source§impl AnchorIndex
impl AnchorIndex
pub fn open_project(project_dir: &Path) -> Result<Self>
pub fn path(&self) -> &Path
pub fn conn(&self) -> MutexGuard<'_, Connection>
pub fn insert_project_event( &self, session_id: &str, event: &Event, payload_json: &str, ) -> Result<i64>
pub fn fts_search_project_events( &self, query: &str, session_filter: Option<&str>, limit: usize, ) -> Result<Vec<ProjectEventRow>>
pub fn count_events( &self, session_id: &str, kinds: Option<&[&str]>, ) -> Result<u64>
pub fn read_events_paginated( &self, session_id: &str, offset: usize, limit: usize, kinds: Option<&[&str]>, ) -> Result<Vec<ProjectEventRow>>
pub fn count_search_hits( &self, query: &str, session_filter: Option<&str>, ) -> Result<u64>
pub fn delete_events_for_session(&self, session_id: &str) -> Result<usize>
pub fn insert_project_event_raw( &self, row: ProjectEventInsert<'_>, ) -> Result<i64>
pub fn find_project_events_around( &self, session_id: &str, seq: u64, window: usize, ) -> Result<Vec<ProjectEventRow>>
pub fn find_project_events_by_anchor( &self, session_id: &str, kind: AnchorKind, id: &str, ) -> Result<Vec<ProjectEventRow>>
pub fn rebuild_events_from_sessions( &self, sessions_root: &Path, fingerprint: &str, ) -> Result<RebuildStats>
pub fn find_by_anchor( &self, kind: AnchorKind, id: &str, ) -> Result<Vec<(String, String)>>
Auto Trait Implementations§
impl !Freeze for AnchorIndex
impl RefUnwindSafe for AnchorIndex
impl Send for AnchorIndex
impl Sync for AnchorIndex
impl Unpin for AnchorIndex
impl UnsafeUnpin for AnchorIndex
impl UnwindSafe for AnchorIndex
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.