pub struct StructuredReadOnlyDbBuilder { /* private fields */ }Expand description
Builder for a snapshot-backed structured database with runtime schema wiring.
Implementations§
Source§impl StructuredReadOnlyDbBuilder
impl StructuredReadOnlyDbBuilder
pub fn new(config: Config) -> Self
pub fn db_id(self, db_id: impl Into<String>) -> Self
pub fn merge_operator_resolver( self, resolver: Arc<dyn MergeOperatorResolver>, ) -> Self
Sourcepub fn register_schema_transform<F, T>(
self,
transform_type: impl Into<String>,
factory: F,
) -> Result<Self>
pub fn register_schema_transform<F, T>( self, transform_type: impl Into<String>, factory: F, ) -> Result<Self>
Register a factory for raw single-column transform specifications.
pub fn open(self, snapshot_id: u64) -> Result<StructuredReadOnlyDb>
Auto Trait Implementations§
impl !RefUnwindSafe for StructuredReadOnlyDbBuilder
impl !UnwindSafe for StructuredReadOnlyDbBuilder
impl Freeze for StructuredReadOnlyDbBuilder
impl Send for StructuredReadOnlyDbBuilder
impl Sync for StructuredReadOnlyDbBuilder
impl Unpin for StructuredReadOnlyDbBuilder
impl UnsafeUnpin for StructuredReadOnlyDbBuilder
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<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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