pub struct DatabaseOpts {
pub enable_views: bool,
pub enable_custom_types: bool,
pub enable_encryption: bool,
pub enable_index_method: bool,
pub enable_autovacuum: bool,
pub enable_vacuum: bool,
pub enable_attach: bool,
pub enable_generated_columns: bool,
pub enable_multiprocess_wal: bool,
pub enable_without_rowid: bool,
pub enable_experimental_mvcc_passive_checkpoint: bool,
pub unsafe_testing: bool,
/* private fields */
}Expand description
Configuration for database features
Fields§
§enable_views: bool§enable_custom_types: bool§enable_encryption: bool§enable_index_method: bool§enable_autovacuum: bool§enable_vacuum: bool§enable_attach: bool§enable_generated_columns: bool§enable_multiprocess_wal: bool§enable_without_rowid: bool§enable_experimental_mvcc_passive_checkpoint: bool§unsafe_testing: boolImplementations§
Source§impl DatabaseOpts
impl DatabaseOpts
pub fn new() -> Self
pub fn with_views(self, enable: bool) -> Self
pub fn with_custom_types(self, enable: bool) -> Self
pub fn with_encryption(self, enable: bool) -> Self
pub fn with_index_method(self, enable: bool) -> Self
pub fn with_autovacuum(self, enable: bool) -> Self
pub fn with_vacuum(self, enable: bool) -> Self
pub fn with_experimental_mvcc_passive_checkpoint(self, enable: bool) -> Self
pub fn with_attach(self, enable: bool) -> Self
pub fn with_generated_columns(self, enable: bool) -> Self
pub fn with_multiprocess_wal(self, enable: bool) -> Self
pub fn with_without_rowid(self, enable: bool) -> Self
pub fn with_unsafe_testing(self, enable: bool) -> Self
Trait Implementations§
Source§impl Clone for DatabaseOpts
impl Clone for DatabaseOpts
Source§fn clone(&self) -> DatabaseOpts
fn clone(&self) -> DatabaseOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatabaseOpts
Source§impl Debug for DatabaseOpts
impl Debug for DatabaseOpts
Source§impl Default for DatabaseOpts
impl Default for DatabaseOpts
Source§fn default() -> DatabaseOpts
fn default() -> DatabaseOpts
Returns the “default value” for a type. Read more
impl Eq for DatabaseOpts
Source§impl PartialEq for DatabaseOpts
impl PartialEq for DatabaseOpts
impl StructuralPartialEq for DatabaseOpts
Auto Trait Implementations§
impl Freeze for DatabaseOpts
impl RefUnwindSafe for DatabaseOpts
impl Send for DatabaseOpts
impl Sync for DatabaseOpts
impl Unpin for DatabaseOpts
impl UnsafeUnpin for DatabaseOpts
impl UnwindSafe for DatabaseOpts
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
Source§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.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