Trait ClickhouseExecutor

Source
pub trait ClickhouseExecutor<'c, 'q, 'async_trait, T>:
    Executor<'c>
    + Sync
    + 'async_trait
where '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§

Source

fn execute( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>

Source

fn fetch_all( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>

Source

fn fetch_one( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>

Source

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.

Implementors§

Source§

impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c ClickhousePgPool
where 'c: 'async_trait, 'q: 'async_trait,

Source§

impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c mut ClickhousePgConnection
where 'c: 'async_trait, 'q: 'async_trait,

Source§

impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c mut ClickhousePgPoolConnection
where 'c: 'async_trait, 'q: 'async_trait,