Trait diesel::query_builder::AsQuery[][src]

pub trait AsQuery {
    type SqlType;
    type Query: Query<SqlType = Self::SqlType>;
    fn as_query(self) -> Self::Query;
}
Expand description

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.

A type which implements this trait is guaranteed to be valid for execution.

Associated Types

The SQL type of Self::Query

What kind of query does this type represent?

Required methods

Converts a type which semantically represents a SQL query into the actual query being executed. See the trait level docs for more.

Implementors