Trait query_connector::Connection
source · pub trait Connection: ConnectionLike {
// Required methods
fn start_transaction<'a, 'async_trait>(
&'a mut self,
isolation_level: Option<String>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transaction + 'a>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait;
fn as_connection_like(&mut self) -> &mut dyn ConnectionLike;
}
Required Methods§
fn start_transaction<'a, 'async_trait>( &'a mut self, isolation_level: Option<String> ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transaction + 'a>>> + Send + 'async_trait>>where Self: 'async_trait, 'a: 'async_trait,
sourcefn as_connection_like(&mut self) -> &mut dyn ConnectionLike
fn as_connection_like(&mut self) -> &mut dyn ConnectionLike
Explicit upcast.