pub struct Builder { /* private fields */ }Expand description
A builder for Database.
Implementations§
Source§impl Builder
impl Builder
pub fn experimental_encryption(self, encryption_enabled: bool) -> Self
pub fn with_encryption(self, opts: EncryptionOpts) -> Self
Sourcepub fn experimental_triggers(self, _triggers_enabled: bool) -> Self
pub fn experimental_triggers(self, _triggers_enabled: bool) -> Self
Kept for backwards compatibility. Triggers are now always enabled.
pub fn experimental_attach(self, attach_enabled: bool) -> Self
Sourcepub fn experimental_strict(self, _strict_enabled: bool) -> Self
pub fn experimental_strict(self, _strict_enabled: bool) -> Self
Kept for backwards compatibility. Strict tables are now always enabled.
pub fn experimental_custom_types(self, custom_types_enabled: bool) -> Self
pub fn experimental_generated_columns(self, gencols_enabled: bool) -> Self
pub fn experimental_index_method(self, index_method_enabled: bool) -> Self
pub fn experimental_materialized_views(self, enabled: bool) -> Self
pub fn experimental_vacuum(self, enabled: bool) -> Self
pub fn experimental_multiprocess_wal(self, enabled: bool) -> Self
pub fn experimental_without_rowid(self, enabled: bool) -> Self
pub fn experimental_mvcc_passive_checkpoint(self, enabled: bool) -> Self
pub fn with_io(self, vfs: String) -> Self
Sourcepub fn with_io_impl(self, io: Arc<dyn IO>) -> Self
pub fn with_io_impl(self, io: Arc<dyn IO>) -> Self
Can pass custom IO implementation
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
impl Freeze for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
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
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