Struct sqlite_bindings_lunatic::OpenFlags
source · pub struct OpenFlags(_);
Expand description
Flags for opening a database connection.
Implementations§
source§impl OpenFlags
impl OpenFlags
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.