pub trait ClickhouseExecutor<'c, 'q, 'async_trait, T>:
Executor<'c>
+ Sync
+ 'async_traitwhere
'c: 'async_trait,
'q: 'async_trait,
T: 'async_trait + From<<Self::Database as Database>::Row>,{
// Provided methods
fn execute(
self,
sql: &'q str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> { ... }
fn fetch_all(
self,
sql: &'q str,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>> { ... }
fn fetch_one(
self,
sql: &'q str,
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>> { ... }
fn fetch_optional(
self,
sql: &'q str,
) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>> { ... }
}
Provided Methods§
fn execute( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
fn fetch_all( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>
fn fetch_one( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
fn fetch_optional( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.