Trait cdrs::query::PrepareExecutor [−][src]
pub trait PrepareExecutor<T: CDRSTransport + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized>: GetConnection<T, M> + GetCompressor<'static> { fn prepare_tw<Q: ToString>(
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<PreparedQuery> { ... } fn prepare<Q: ToString>(&self, query: Q) -> Result<PreparedQuery> { ... } }
Provided Methods
fn prepare_tw<Q: ToString>(
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<PreparedQuery>
&self,
query: Q,
with_tracing: bool,
with_warnings: bool
) -> Result<PreparedQuery>
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.
fn prepare<Q: ToString>(&self, query: Q) -> Result<PreparedQuery>
It prepares query without additional tracing information and warnings.
Implementors
impl<'a, T: CDRSTransport + 'static, LB: LoadBalancingStrategy<Pool<M>> + Sized, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized> PrepareExecutor<T, M> for Session<LB>