Trait sea_orm::query::QueryTrait
source · [−]pub trait QueryTrait {
type QueryStatement: QueryStatementBuilder;
fn query(&mut self) -> &mut Self::QueryStatement;
fn as_query(&self) -> &Self::QueryStatement;
fn into_query(self) -> Self::QueryStatement;
fn build(&self, db_backend: DbBackend) -> Statement { ... }
}
Expand description
A Trait for any type performing queries on a Model or ActiveModel
Required Associated Types
Constrain the QueryStatement to QueryStatementBuilder trait
Required Methods
sourcefn query(&mut self) -> &mut Self::QueryStatement
fn query(&mut self) -> &mut Self::QueryStatement
Get a mutable ref to the query builder
sourcefn as_query(&self) -> &Self::QueryStatement
fn as_query(&self) -> &Self::QueryStatement
Get an immutable ref to the query builder
sourcefn into_query(self) -> Self::QueryStatement
fn into_query(self) -> Self::QueryStatement
Take ownership of the query builder