pub trait PrepareExecutor {
// Required method
fn prepare_tw<'life0, 'async_trait, Q>(
self: Pin<&'life0 mut Self>,
query: Q,
with_tracing: bool,
with_warnings: bool,
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>>
where Q: 'async_trait + ToString + Send,
Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn prepare<'life0, 'async_trait, Q>(
self: Pin<&'life0 mut Self>,
query: Q,
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>>
where Q: 'async_trait + ToString + Send,
Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Traits that provides methods for preparing queries on a DB server.
Required Methods§
Sourcefn prepare_tw<'life0, 'async_trait, Q>(
self: Pin<&'life0 mut Self>,
query: Q,
with_tracing: bool,
with_warnings: bool,
) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + 'async_trait>>
fn prepare_tw<'life0, 'async_trait, Q>( self: Pin<&'life0 mut Self>, query: Q, with_tracing: bool, with_warnings: bool, ) -> Pin<Box<dyn Future<Output = Result<PreparedQuery>> + Send + '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.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.