pub struct FileConnectionStrategy { /* private fields */ }
Available on crate feature
sqlite
only.Expand description
Connection strategy that connects to a database based on a file path.
Implementations§
source§impl FileConnectionStrategy
impl FileConnectionStrategy
pub fn new(db_path: &Path) -> FileConnectionStrategy
Trait Implementations§
source§impl ConnectionStrategy for FileConnectionStrategy
impl ConnectionStrategy for FileConnectionStrategy
source§fn make_connection(&self) -> Result<Connection, SqLiteDataStorageError>
fn make_connection(&self) -> Result<Connection, SqLiteDataStorageError>
Connect to the SQLite database.
Auto Trait Implementations§
impl RefUnwindSafe for FileConnectionStrategy
impl Send for FileConnectionStrategy
impl Sync for FileConnectionStrategy
impl Unpin for FileConnectionStrategy
impl UnwindSafe for FileConnectionStrategy
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