Trait diesel::query_builder::AsQuery
[−]
[src]
pub trait AsQuery { type SqlType: NativeSqlType; type Query: Query<SqlType=Self::SqlType>; fn as_query(self) -> Self::Query; }
Types that can be converted into a complete, typed SQL query. This is used
internally to automatically add the right select clause when none is
specified, or to automatically add RETURNING *
in certain contexts
Associated Types
type SqlType: NativeSqlType
type Query: Query<SqlType=Self::SqlType>
Required Methods
fn as_query(self) -> Self::Query
Implementors
impl<T: Query> AsQuery for T