pub struct OpenFlags {
pub read_only: bool,
pub read_write: bool,
pub create: bool,
pub uri: bool,
pub no_mutex: bool,
pub full_mutex: bool,
pub shared_cache: bool,
pub private_cache: bool,
}Expand description
Flags controlling how the database is opened.
Fields§
§read_only: boolOpen for reading only.
read_write: boolOpen for reading and writing.
create: boolCreate the database if it doesn’t exist.
uri: boolEnable URI filename interpretation.
no_mutex: boolOpen in multi-thread mode (connections not shared between threads).
full_mutex: boolOpen in serialized mode (connections can be shared).
Enable shared cache mode.
private_cache: boolDisable shared cache mode.
Implementations§
Source§impl OpenFlags
impl OpenFlags
Sourcepub fn read_write() -> Self
pub fn read_write() -> Self
Create flags for read-write access (database must exist).
Sourcepub fn create_read_write() -> Self
pub fn create_read_write() -> Self
Create flags for read-write access with creation if needed.
Trait Implementations§
impl Copy for OpenFlags
Auto Trait Implementations§
impl Freeze for OpenFlags
impl RefUnwindSafe for OpenFlags
impl Send for OpenFlags
impl Sync for OpenFlags
impl Unpin 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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).