Struct diesel::query_builder::ValuesClause
source · pub struct ValuesClause<T, Tab> {
pub values: T,
/* private fields */
}
Available on crate feature
i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Expand description
This type represents a values clause used as part of insert statements
Diesel exposes this type for third party backends so that they can implement batch insert support
Fields§
§values: T
Values to insert
Trait Implementations§
source§impl<T: Clone, Tab: Clone> Clone for ValuesClause<T, Tab>
impl<T: Clone, Tab: Clone> Clone for ValuesClause<T, Tab>
source§fn clone(&self) -> ValuesClause<T, Tab>
fn clone(&self) -> ValuesClause<T, Tab>
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<T: Default, Tab> Default for ValuesClause<T, Tab>
impl<T: Default, Tab> Default for ValuesClause<T, Tab>
source§impl<T: QueryId, Tab: QueryId> QueryId for ValuesClause<T, Tab>
impl<T: QueryId, Tab: QueryId> QueryId for ValuesClause<T, Tab>
impl<T: Copy, Tab: Copy> Copy for ValuesClause<T, Tab>
impl<T, Table> UndecoratedInsertRecord<Table> for ValuesClause<T, Table>where T: UndecoratedInsertRecord<Table>,
Auto Trait Implementations§
impl<T, Tab> RefUnwindSafe for ValuesClause<T, Tab>where T: RefUnwindSafe, Tab: RefUnwindSafe,
impl<T, Tab> Send for ValuesClause<T, Tab>where T: Send, Tab: Send,
impl<T, Tab> Sync for ValuesClause<T, Tab>where T: Sync, Tab: Sync,
impl<T, Tab> Unpin for ValuesClause<T, Tab>where T: Unpin, Tab: Unpin,
impl<T, Tab> UnwindSafe for ValuesClause<T, Tab>where T: UnwindSafe, Tab: UnwindSafe,
Blanket Implementations§
source§impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB, NotSpecialized> + QueryId,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere Conn: Connection<Backend = DB>, DB: Backend, T: QueryFragment<DB, NotSpecialized> + QueryId,
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