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.

Just because a type doesn't implement this trait doesn't mean that it doesn't represent a complete SQL query, just that it doesn't have a return type. For example, an INSERT statement without a RETURNING clause will not implement this trait, but can still be executed.

Associated Types

The SQL type that this query represents.

This is the SQL type of the SELECT clause for select statements, and the SQL type of the RETURNING clause for insert, update, or delete statements.

Implementations on Foreign Types

impl<'a, T: Query> Query for &'a T
[src]

Implementors