Trait clickhouse_postgres_client::ClickhouseExecutor[][src]

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>, 
{ pub fn execute(
        self,
        sql: &'q str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send, Global>> { ... }
pub fn fetch_all(
        self,
        sql: &'q str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<T, Global>, Error>> + 'async_trait + Send, Global>> { ... }
pub fn fetch_one(
        self,
        sql: &'q str
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + 'async_trait + Send, Global>> { ... }
pub fn fetch_optional(
        self,
        sql: &'q str
    ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + 'async_trait + Send, Global>> { ... } }

Provided methods

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

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

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

pub fn fetch_optional(
    self,
    sql: &'q str
) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + 'async_trait + Send, Global>>
[src]

Loading content...

Implementors

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

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

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

Loading content...