pub struct SelectQuery {
pub from: TableRef,
pub joins: Vec<Join>,
pub projection: Vec<SelectProjection>,
pub predicate: Option<Predicate>,
pub order_by: Vec<OrderBy>,
pub pagination: Option<Pagination>,
}Fields§
§from: TableRef§joins: Vec<Join>§projection: Vec<SelectProjection>§predicate: Option<Predicate>§order_by: Vec<OrderBy>§pagination: Option<Pagination>Implementations§
Source§impl SelectQuery
impl SelectQuery
pub fn from_entity<E: Entity>() -> Self
pub fn from_entity_as<E: Entity>(alias: &'static str) -> Self
pub fn select<P, I>(self, projection: I) -> Self
pub fn filter(self, predicate: Predicate) -> Self
pub fn join(self, join: Join) -> Self
pub fn inner_join<E: Entity>(self, on: Predicate) -> Self
pub fn left_join<E: Entity>(self, on: Predicate) -> Self
pub fn inner_join_as<E: Entity>( self, alias: &'static str, on: Predicate, ) -> Self
pub fn left_join_as<E: Entity>(self, alias: &'static str, on: Predicate) -> Self
pub fn order_by(self, order: OrderBy) -> Self
pub fn paginate(self, pagination: Pagination) -> Self
Trait Implementations§
Source§impl Clone for SelectQuery
impl Clone for SelectQuery
Source§fn clone(&self) -> SelectQuery
fn clone(&self) -> SelectQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectQuery
impl Debug for SelectQuery
Source§impl PartialEq for SelectQuery
impl PartialEq for SelectQuery
Source§fn eq(&self, other: &SelectQuery) -> bool
fn eq(&self, other: &SelectQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectQuery
Auto Trait Implementations§
impl Freeze for SelectQuery
impl RefUnwindSafe for SelectQuery
impl Send for SelectQuery
impl Sync for SelectQuery
impl Unpin for SelectQuery
impl UnsafeUnpin for SelectQuery
impl UnwindSafe for SelectQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more