pub struct OpenOptions { /* private fields */ }Expand description
Store-open configuration.
Implementations§
Source§impl OpenOptions
impl OpenOptions
Sourcepub const fn with_durability(
self,
mode: DurabilityMode,
tier: CommitTier,
) -> Self
pub const fn with_durability( self, mode: DurabilityMode, tier: CommitTier, ) -> Self
Selects the existing durability-policy mode and per-commit tier.
Sourcepub const fn with_reader_drain_timeout(self, timeout: Duration) -> Self
pub const fn with_reader_drain_timeout(self, timeout: Duration) -> Self
Sets the grace period close gives admitted readers before cancellation.
Sourcepub const fn with_max_resident_bytes(self, bytes: u64) -> Self
pub const fn with_max_resident_bytes(self, bytes: u64) -> Self
Sets the exact ceiling for live engine-owned anonymous bytes.
Sourcepub fn with_schema(self, schema: Schema) -> Self
pub fn with_schema(self, schema: Schema) -> Self
Declares the typed user-column schema when creating a store.
On reopen, the declaration must be an additive evolution of the
persisted schema (see crate::meta::Schema::additive_evolution).
A read-write open commits added nullable columns as one generation;
rows written earlier read them as null. A read-only open, or any
other difference, is StoreError::SchemaMismatch.
Sourcepub const fn with_max_temp_bytes(self, bytes: u64) -> Self
pub const fn with_max_temp_bytes(self, bytes: u64) -> Self
Sets the exact ceiling for live temporary anonymous bytes.
Sourcepub fn with_epoch(self, epoch: StoreEpoch) -> Self
pub fn with_epoch(self, epoch: StoreEpoch) -> Self
Declares the embedding and tokenizer identity used by this handle.
The tokenizer configuration defaults to
crate::fts::tokenizer::TokenizerConfig::text_default.
A non-default tokenizer epoch must be paired with Self::with_tokenizer.
Sourcepub fn with_tokenizer(self, tokenizer: TokenizerConfig) -> Self
pub fn with_tokenizer(self, tokenizer: TokenizerConfig) -> Self
Selects the tokenizer configuration used for indexing and queries.
Open rejects this configuration when its epoch differs from the declared or persisted store identity.