[][src]Trait cdrs::query::QueryExecutor

pub trait QueryExecutor<T: CDRSTransport + Unpin + 'static, M: ManageConnection<Connection = Mutex<T>, Error = Error> + Sized>: GetConnection<T, M> + GetCompressor<'static> + ResponseCache + Sync {
#[must_use]    fn query_with_params_tw<'life0, 'async_trait, Q: ToString + Send>(
        &'life0 self,
        query: Q,
        query_params: QueryParams,
        with_tracing: bool,
        with_warnings: bool
    ) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>>
    where
        Self: Sized,
        Q: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn query<'life0, 'async_trait, Q: ToString + Send>(
        &'life0 self,
        query: Q
    ) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>>
    where
        Self: Sized,
        Q: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn query_tw<'life0, 'async_trait, Q: ToString + Send>(
        &'life0 self,
        query: Q,
        with_tracing: bool,
        with_warnings: bool
    ) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>>
    where
        Self: Sized,
        Q: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn query_with_values<'life0, 'async_trait, Q: ToString + Send, V: Into<QueryValues> + Send>(
        &'life0 self,
        query: Q,
        values: V
    ) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>>
    where
        Self: Sized,
        Q: 'async_trait,
        V: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn query_with_values_tw<'life0, 'async_trait, Q: ToString + Send, V: Into<QueryValues> + Send>(
        &'life0 self,
        query: Q,
        values: V,
        with_tracing: bool,
        with_warnings: bool
    ) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>>
    where
        Self: Sized,
        Q: 'async_trait,
        V: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn query_with_params<'life0, 'async_trait, Q: ToString + Send>(
        &'life0 self,
        query: Q,
        query_params: QueryParams
    ) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>>
    where
        Self: Sized,
        Q: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Provided methods

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

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

Executes a query with default parameters:

  • TDB

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

Executes a query with ability to trace it and see warnings, and default parameters:

  • TBD

#[must_use]fn query_with_values<'life0, 'async_trait, Q: ToString + Send, V: Into<QueryValues> + Send>(
    &'life0 self,
    query: Q,
    values: V
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
    Self: Sized,
    Q: 'async_trait,
    V: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

Executes a query with bounded values (either with or without names).

#[must_use]fn query_with_values_tw<'life0, 'async_trait, Q: ToString + Send, V: Into<QueryValues> + Send>(
    &'life0 self,
    query: Q,
    values: V,
    with_tracing: bool,
    with_warnings: bool
) -> Pin<Box<dyn Future<Output = Result<Frame>> + Send + 'async_trait>> where
    Self: Sized,
    Q: 'async_trait,
    V: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

Executes a query with bounded values (either with or without names) and ability to see warnings, trace a request and default parameters.

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

Executes a query with query params without warnings and tracing.

Loading content...

Implementors

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

Loading content...