Struct keyvaluedb_sqlite::DatabaseConfig
source · pub struct DatabaseConfig {
pub columns: u32,
pub flags: OpenFlags,
}
Expand description
Database configuration
Fields§
§columns: u32
Set number of columns. The number of columns must not be zero.
flags: OpenFlags
Set flags used to open the database
Implementations§
source§impl DatabaseConfig
impl DatabaseConfig
sourcepub fn with_columns(columns: u32) -> Self
pub fn with_columns(columns: u32) -> Self
Create new DatabaseConfig
with default parameters and specified set of columns.
The number of columns
must not be zero.
sourcepub fn with_columns_in_memory(columns: u32) -> Self
pub fn with_columns_in_memory(columns: u32) -> Self
Create new in-memory database DatabaseConfig
with default parameters and specified set of columns.
The number of columns
must not be zero.
sourcepub fn with_columns_and_flags(columns: u32, flags: OpenFlags) -> Self
pub fn with_columns_and_flags(columns: u32, flags: OpenFlags) -> Self
Create new DatabaseConfig
with default parameters and specified set of columns.
Replaces the flags as well.
The number of columns
must not be zero.
Trait Implementations§
source§impl Clone for DatabaseConfig
impl Clone for DatabaseConfig
source§fn clone(&self) -> DatabaseConfig
fn clone(&self) -> DatabaseConfig
Returns a copy 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 Default for DatabaseConfig
impl Default for DatabaseConfig
source§fn default() -> DatabaseConfig
fn default() -> DatabaseConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Unpin for DatabaseConfig
impl UnwindSafe for DatabaseConfig
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