pub struct SqliteOptionsBuilder { /* private fields */ }Expand description
Fluent builder for SQLite options.
Implementations§
Source§impl SqliteOptionsBuilder
impl SqliteOptionsBuilder
pub fn new(db_path: String) -> Self
pub fn translation(self, translate_placeholders: bool) -> Self
pub fn finish(self) -> SqliteOptions
Sourcepub async fn build(self) -> Result<ConfigAndPool, SqlMiddlewareDbError>
pub async fn build(self) -> Result<ConfigAndPool, SqlMiddlewareDbError>
Build a ConfigAndPool for SQLite.
§Errors
Returns SqlMiddlewareDbError if pool creation or the initial smoke test fails.
Trait Implementations§
Source§impl Clone for SqliteOptionsBuilder
impl Clone for SqliteOptionsBuilder
Source§fn clone(&self) -> SqliteOptionsBuilder
fn clone(&self) -> SqliteOptionsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SqliteOptionsBuilder
impl RefUnwindSafe for SqliteOptionsBuilder
impl Send for SqliteOptionsBuilder
impl Sync for SqliteOptionsBuilder
impl Unpin for SqliteOptionsBuilder
impl UnwindSafe for SqliteOptionsBuilder
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