Enum diesel::connection::statement_cache::PrepareForCache
source · pub enum PrepareForCache {
Yes,
No,
}
Available on crate feature
i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Expand description
A helper type that indicates if a certain query is cached inside of the prepared statement cache or not
This information can be used by the connection implementation to signal this fact to the database while actually perparing the statement
Variants§
Trait Implementations§
source§impl Clone for PrepareForCache
impl Clone for PrepareForCache
source§fn clone(&self) -> PrepareForCache
fn clone(&self) -> PrepareForCache
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrepareForCache
impl Debug for PrepareForCache
impl Copy for PrepareForCache
Auto Trait Implementations§
impl RefUnwindSafe for PrepareForCache
impl Send for PrepareForCache
impl Sync for PrepareForCache
impl Unpin for PrepareForCache
impl UnwindSafe for PrepareForCache
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more