pub struct OpenOptions {
pub location: Location,
pub key: Option<Secret>,
pub wal: bool,
pub foreign_keys: bool,
pub busy_timeout_ms: u32,
pub cipher_migrate: bool,
}Expand description
How to open the database. Built by the driver’s own constructors (Sqlite::at etc.);
public so alternative drivers speak the same vocabulary.
Fields§
§location: Location§key: Option<Secret>SQLCipher key; drivers without encryption reject it loudly.
wal: boolJournal in WAL mode (files only; ignored in memory). Default true.
foreign_keys: boolEnforce foreign keys. Default true.
busy_timeout_ms: u32§cipher_migrate: boolUpgrade a file written by an older SQLCipher generation (PRAGMA cipher_migrate).
Implementations§
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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