pub struct Config { /* private fields */ }Expand description
Implementations§
Source§impl Config
impl Config
Sourcepub fn open(p: impl AsRef<Path>) -> Self
pub fn open(p: impl AsRef<Path>) -> Self
Open a database that is stored in a file. Creates the database if it does not exist.
Opening the same database multiple times at the same time is fine, as long as they migrate to or use the same schema. All locking is done by sqlite, so connections can even be made using different client implementations.
Sourcepub fn open_in_memory() -> Self
pub fn open_in_memory() -> Self
Creates a new empty database in memory.
Auto Trait Implementations§
impl !Freeze for Config
impl !RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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