pub struct ConnectionConfiguration {
pub database: Option<Utf8PathBuf>,
}Expand description
Configuration for opening a new SQLite database connection.
This struct controls how a database connection is established, including whether to use a file-based database or an in-memory database.
Fields§
§database: Option<Utf8PathBuf>Optional path to the database file.
If None, an in-memory database will be used. If Some, the database
will be persisted to the specified file path.
Trait Implementations§
Source§impl Clone for ConnectionConfiguration
impl Clone for ConnectionConfiguration
Source§fn clone(&self) -> ConnectionConfiguration
fn clone(&self) -> ConnectionConfiguration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectionConfiguration
impl RefUnwindSafe for ConnectionConfiguration
impl Send for ConnectionConfiguration
impl Sync for ConnectionConfiguration
impl Unpin for ConnectionConfiguration
impl UnsafeUnpin for ConnectionConfiguration
impl UnwindSafe for ConnectionConfiguration
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