Trait diesel::query_builder::Query
[−]
[src]
pub trait Query { type SqlType; }
A complete SQL query with a return type. This can be a select statement, or
a command such as update
or insert
with a RETURNING
clause. Unlike
Expression
, types implementing this
trait are guaranteed to be executable on their own.
Associated Types
type SqlType
Implementors
impl<ST> Query for SqlLiteral<ST> type SqlType = ST;
impl<T, U, Op, Ret> Query for InsertStatement<T, U, Op, ReturningClause<Ret>> where
Ret: Expression + SelectableExpression<T> + NonAggregate, type SqlType = Ret::SqlType;impl<T, Ret> Query for DefaultInsertStatement<T, ReturningClause<Ret>> where
Ret: Expression + SelectableExpression<T> + NonAggregate, type SqlType = Ret::SqlType;impl<T, U, V, Ret> Query for UpdateStatement<T, U, V, ReturningClause<Ret>> where
T: Table,
Ret: Expression + SelectableExpression<T> + NonAggregate, type SqlType = Ret::SqlType;impl<'a, T: Query> Query for &'a T type SqlType = T::SqlType;