pub struct SQLiteBackend;Expand description
SQLite Backend implementation.
Implementations§
Source§impl SQLiteBackend
impl SQLiteBackend
pub fn new() -> SQLiteBackend
Trait Implementations§
Source§impl Backend for SQLiteBackend
impl Backend for SQLiteBackend
Source§fn row_id_column(&self) -> Option<&'static str>
fn row_id_column(&self) -> Option<&'static str>
Backend-dependent field name for the database’s internal identifier for each row. Read more
fn create_migration_sql( &self, current: &ADB, ops: Vec<Operation>, ) -> Result<String, Error>
Source§fn connect(&self, path: &str) -> Result<Connection, Error>
fn connect(&self, path: &str) -> Result<Connection, Error>
Establish a new sync connection. Read more
Source§fn connect_async<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ConnectionAsync, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
SQLiteBackend: 'async_trait,
fn connect_async<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ConnectionAsync, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
SQLiteBackend: 'async_trait,
Establish a new async connection. The format of the connection
string is backend-dependent.
Source§impl Clone for SQLiteBackend
impl Clone for SQLiteBackend
Source§fn clone(&self) -> SQLiteBackend
fn clone(&self) -> SQLiteBackend
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 moreSource§impl Debug for SQLiteBackend
impl Debug for SQLiteBackend
Source§impl Default for SQLiteBackend
impl Default for SQLiteBackend
Source§fn default() -> SQLiteBackend
fn default() -> SQLiteBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SQLiteBackend
impl RefUnwindSafe for SQLiteBackend
impl Send for SQLiteBackend
impl Sync for SQLiteBackend
impl Unpin for SQLiteBackend
impl UnwindSafe for SQLiteBackend
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