Trait QueryExecutor

Source
pub trait QueryExecutor<T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized>: GetConnection<T, M> + GetCompressor<'static> {
    // Provided methods
    fn query_with_params_tw<Q: ToString>(
        &self,
        query: Q,
        query_params: QueryParams,
        with_tracing: bool,
        with_warnings: bool,
    ) -> Result<Frame>
       where Self: Sized { ... }
    fn query<Q: ToString>(&self, query: Q) -> Result<Frame>
       where Self: Sized { ... }
    fn query_tw<Q: ToString>(
        &self,
        query: Q,
        with_tracing: bool,
        with_warnings: bool,
    ) -> Result<Frame>
       where Self: Sized { ... }
    fn query_with_values<Q: ToString, V: Into<QueryValues>>(
        &self,
        query: Q,
        values: V,
    ) -> Result<Frame>
       where Self: Sized { ... }
    fn query_with_values_tw<Q: ToString, V: Into<QueryValues>>(
        &self,
        query: Q,
        values: V,
        with_tracing: bool,
        with_warnings: bool,
    ) -> Result<Frame>
       where Self: Sized { ... }
    fn query_with_params<Q: ToString>(
        &self,
        query: Q,
        query_params: QueryParams,
    ) -> Result<Frame>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn query_with_params_tw<Q: ToString>( &self, query: Q, query_params: QueryParams, with_tracing: bool, with_warnings: bool, ) -> Result<Frame>
where Self: Sized,

Source

fn query<Q: ToString>(&self, query: Q) -> Result<Frame>
where Self: Sized,

Executes a query with default parameters:

  • TDB
Source

fn query_tw<Q: ToString>( &self, query: Q, with_tracing: bool, with_warnings: bool, ) -> Result<Frame>
where Self: Sized,

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

  • TBD
Source

fn query_with_values<Q: ToString, V: Into<QueryValues>>( &self, query: Q, values: V, ) -> Result<Frame>
where Self: Sized,

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

Source

fn query_with_values_tw<Q: ToString, V: Into<QueryValues>>( &self, query: Q, values: V, with_tracing: bool, with_warnings: bool, ) -> Result<Frame>
where Self: Sized,

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

Source

fn query_with_params<Q: ToString>( &self, query: Q, query_params: QueryParams, ) -> Result<Frame>
where Self: Sized,

Executes a query with query params without warnings and tracing.

Implementors§

Source§

impl<'a, T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized> QueryExecutor<T, M> for Session<LB>