pub struct OpenFlags {
pub read_write: bool,
pub create: bool,
pub full_mutex: bool,
pub no_mutex: bool,
pub shared_cache: bool,
pub private_cache: bool,
pub uri: bool,
}Expand description
SQLite database open flags
Fields§
§read_write: bool§create: bool§full_mutex: bool§no_mutex: bool§private_cache: bool§uri: boolImplementations§
Source§impl OpenFlags
impl OpenFlags
Sourcepub fn read_write(self, enabled: bool) -> Self
pub fn read_write(self, enabled: bool) -> Self
Enable read-write access (default: true)
Sourcepub fn create(self, enabled: bool) -> Self
pub fn create(self, enabled: bool) -> Self
Enable creation of database if it doesn’t exist (default: true)
Sourcepub fn full_mutex(self, enabled: bool) -> Self
pub fn full_mutex(self, enabled: bool) -> Self
Use full mutex locking (default: true)
Enable shared cache (default: false)
Sourcepub fn private_cache(self, enabled: bool) -> Self
pub fn private_cache(self, enabled: bool) -> Self
Enable private cache (default: false)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenFlags
impl RefUnwindSafe for OpenFlags
impl Send for OpenFlags
impl Sync for OpenFlags
impl Unpin for OpenFlags
impl UnsafeUnpin for OpenFlags
impl UnwindSafe for OpenFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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