Struct sea_orm::entity::prelude::Select [−][src]
pub struct Select<E> where
E: EntityTrait, { /* fields omitted */ }
Implementations
pub fn paginate(
self,
db: &DatabaseConnection,
page_size: usize
) -> Paginator<'_, SelectModel<E::Model>>
Left Join with a Related Entity.
Right Join with a Related Entity.
Inner Join with a Related Entity.
Join with an Entity Related to me.
Left Join with a Related Entity and select both Entity.
Left Join with a Related Entity and select the related Entity as a Vec
pub fn find_also_linked<L, T>(self, l: L) -> SelectTwo<E, T> where
L: Linked<FromEntity = E, ToEntity = T>,
T: EntityTrait,
pub fn find_also_linked<L, T>(self, l: L) -> SelectTwo<E, T> where
L: Linked<FromEntity = E, ToEntity = T>,
T: EntityTrait,
Left Join with a Linked Entity and select both Entity.
Trait Implementations
type QueryStatement = SelectStatement
Add an AND WHERE expression Read more
Apply a where condition using the model’s primary key
type QueryStatement = SelectStatement
Add an order_by expression Read more
Add an order_by expression (ascending) Read more
Add an order_by expression (descending) Read more
type QueryStatement = SelectStatement
Clear the selection list
Add a select column Read more
Add a select column with alias Read more
Add a group by column Read more
Add an AND HAVING expression Read more
Join via RelationDef
.
Join via RelationDef
but in reverse direction.
Assume when there exist a relation A to B.
You can reverse join B from A. Read more
Select lock shared
Select lock exclusive
type QueryStatement = SelectStatement
Get a mutable ref to the query builder
Get an immutable ref to the query builder
Take ownership of the query builder
Auto Trait Implementations
impl<E> !RefUnwindSafe for Select<E>
impl<E> !UnwindSafe for Select<E>
Blanket Implementations
Mutably borrows from an owned value. Read more