[][src]Trait cdrs::query::PrepareExecutor

pub trait PrepareExecutor<T: CDRSTransport + Unpin + 'static, M: ManageConnection<Connection = Mutex<T>, Error = Error> + Sized>: GetConnection<T, M> + GetCompressor<'static> + ResponseCache + Sync {
#[must_use]    fn prepare_tw<'life0, 'async_trait, Q: ToString + Sync + Send>(
        &'life0 self,
        query: Q,
        with_tracing: bool,
        with_warnings: bool
    ) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>>
    where
        Self: Sized,
        Q: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn prepare<'life0, 'async_trait, Q: ToString + Sync + Send>(
        &'life0 self,
        query: Q
    ) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>>
    where
        Self: Sized + Sync,
        Q: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Provided methods

#[must_use]fn prepare_tw<'life0, 'async_trait, Q: ToString + Sync + Send>(
    &'life0 self,
    query: Q,
    with_tracing: bool,
    with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>> where
    Self: Sized,
    Q: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

It prepares a query for execution, along with query itself the method takes with_tracing and with_warnings flags to get tracing information and warnings.

#[must_use]fn prepare<'life0, 'async_trait, Q: ToString + Sync + Send>(
    &'life0 self,
    query: Q
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>> where
    Self: Sized + Sync,
    Q: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

It prepares query without additional tracing information and warnings.

Loading content...

Implementors

impl<'a, T: CDRSTransport + Unpin + 'static, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized + Send + Sync, M: ManageConnection<Connection = Mutex<T>, Error = Error> + Sized> PrepareExecutor<T, M> for Session<LB>[src]

Loading content...