pub struct OpenOptions { /* private fields */ }Expand description
Options that can be used to customize the opening of a SQLite database.
Implementations§
Source§impl OpenOptions
impl OpenOptions
Sourcepub fn memory(&self) -> Result<Connection>
pub fn memory(&self) -> Result<Connection>
Open an in-memory database connection with current flags.
Sourcepub fn set_create(self) -> Self
pub fn set_create(self) -> Self
Create the database if it does not already exist.
Sourcepub fn set_full_mutex(self) -> Self
pub fn set_full_mutex(self) -> Self
Open the database in the serialized threading mode.
Sourcepub fn set_no_mutex(self) -> Self
pub fn set_no_mutex(self) -> Self
Opens the database in the multi-thread threading mode.
Sourcepub fn set_read_only(self) -> Self
pub fn set_read_only(self) -> Self
Open the database for reading only.
Sourcepub fn set_read_write(self) -> Self
pub fn set_read_write(self) -> Self
Open the database for reading and writing.
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenOptions
impl Debug for OpenOptions
Source§impl Default for OpenOptions
impl Default for OpenOptions
Source§fn default() -> OpenOptions
fn default() -> OpenOptions
Returns the “default value” for a type. Read more
impl Copy 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 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