pub struct SessionSearch { /* private fields */ }Expand description
RAII application root shared by native frontends and language bindings.
Opening an instance applies the configured SQLite contention and performance policy exactly once. Dropping it closes the owned database connection.
Implementations§
Source§impl SessionSearch
impl SessionSearch
Sourcepub fn open(config: Config) -> Result<Self>
pub fn open(config: Config) -> Result<Self>
Open an index using an explicit configuration.
existing-only opens a SQLite-enforced read-only handle and never creates directories,
installs schema objects, refreshes sources, or changes journal policy. SQLite may create or
update empty -wal/-shm coordination sidecars when opening a WAL database whose sidecars
are absent; it does not modify the durable database contents. Other refresh modes
may create a new current-schema database and later perform the configured incremental
refresh. Newer, hybrid, and incomplete current schemas fail before an ordinary query.
Sourcepub fn open_with_access_inputs(
config: Config,
access_inputs: TrustedAccessInputs,
) -> Result<Self>
pub fn open_with_access_inputs( config: Config, access_inputs: TrustedAccessInputs, ) -> Result<Self>
Open an index with trusted runtime roots supplied by a harness integration.
Sourcepub const fn access_scope(&self) -> &EffectiveAccessScope
pub const fn access_scope(&self) -> &EffectiveAccessScope
Immutable access authority used by every read service.
Sourcepub const fn catalog(&self) -> CatalogService<'_>
pub const fn catalog(&self) -> CatalogService<'_>
Session catalog operations.
Sourcepub const fn messages(&self) -> MessageService<'_>
pub const fn messages(&self) -> MessageService<'_>
Message search and context operations.
Sourcepub fn message_search_batches(
&self,
request: MessageSearchRequest,
batch_rows: NonZeroUsize,
) -> Result<MessageSearchBatches>
pub fn message_search_batches( &self, request: MessageSearchRequest, batch_rows: NonZeroUsize, ) -> Result<MessageSearchBatches>
Open an exhaustive literal, regex, or queryless search as fully enriched batches on a dedicated read-only connection.
Ordinary callers should prefer MessageService::search, which returns one materialized
response. batch_rows trades active memory for handoff and enrichment-query frequency; it
does not change result membership, ordering, context, the request-wide union of included
data, or terminal metadata. It accepts any positive usize; an allocation failure returns
an error that asks for a smaller value.
§Errors
Returns an error when the request selects a finite page or fuzzy matching. Use
MessageService::search for those requests.
Sourcepub const fn files(&self) -> FileService<'_>
pub const fn files(&self) -> FileService<'_>
File history operations.
Sourcepub const fn exports(&self) -> ExportService<'_>
pub const fn exports(&self) -> ExportService<'_>
Destination-independent session export operations.
Sourcepub const fn index(&self) -> IndexService<'_>
pub const fn index(&self) -> IndexService<'_>
Index lifecycle operations.
Sourcepub const fn maintenance(&self) -> MaintenanceService<'_>
pub const fn maintenance(&self) -> MaintenanceService<'_>
Index diagnostics and destructive maintenance operations.
Sourcepub const fn sources(&self) -> SourceService<'_>
pub const fn sources(&self) -> SourceService<'_>
Effective provider roots and discovery status.
Sourcepub const fn analysis(&self) -> AnalysisService<'_>
pub const fn analysis(&self) -> AnalysisService<'_>
Indexed correction, planning, and statistics operations.
Auto Trait Implementations§
impl !Freeze for SessionSearch
impl !RefUnwindSafe for SessionSearch
impl !Sync for SessionSearch
impl !UnwindSafe for SessionSearch
impl Send for SessionSearch
impl Unpin for SessionSearch
impl UnsafeUnpin for SessionSearch
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more