pub enum AnyConnection {
Sqlite(SqliteConnection),
}Variants§
Sqlite(SqliteConnection)
Implementations§
Source§impl AnyConnection
impl AnyConnection
pub fn backend_name(&self) -> &str
Source§impl AnyConnection
impl AnyConnection
pub async fn execute_internal( &mut self, sql: &str, arguments: &[Value], ) -> Result<AnyQueryResult, Error>
pub async fn fetch_all_internal( &mut self, sql: &str, arguments: &[Value], ) -> Result<Vec<AnyRow>, Error>
pub async fn fetch_optional_internal( &mut self, sql: &str, arguments: &[Value], ) -> Result<Option<AnyRow>, Error>
pub async fn fetch_one_internal( &mut self, sql: &str, arguments: &[Value], ) -> Result<AnyRow, Error>
Trait Implementations§
Source§impl Debug for AnyConnection
impl Debug for AnyConnection
Source§impl<'c> Executor for &'c mut AnyConnection
impl<'c> Executor for &'c mut AnyConnection
type Database = Any
async fn execute( self, sql: &str, arguments: &[Value], ) -> Result<AnyQueryResult, Error>
async fn fetch_all( self, sql: &str, arguments: &[Value], ) -> Result<Vec<AnyRow>, Error>
async fn fetch_optional( self, sql: &str, arguments: &[Value], ) -> Result<Option<AnyRow>, Error>
async fn fetch_one( self, sql: &str, arguments: &[Value], ) -> Result<AnyRow, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for AnyConnection
impl !Sync for AnyConnection
impl !UnwindSafe for AnyConnection
impl Freeze for AnyConnection
impl Send for AnyConnection
impl Unpin for AnyConnection
impl UnsafeUnpin for AnyConnection
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