pub struct QueryBuilder { /* private fields */ }Implementations§
Source§impl QueryBuilder
impl QueryBuilder
pub fn from_relation(relation: Relation) -> Self
pub fn select(self, expressions: impl IntoIterator<Item = Expr>) -> Self
pub fn select_projections(self, projections: Vec<Projection>) -> Self
pub fn filter(self, filter: impl Into<Expr>) -> Self
pub fn distinct(self) -> Self
pub fn distinct_on(self, expressions: impl IntoIterator<Item = Expr>) -> Self
pub fn join(self, kind: JoinKind, right: Relation, on: Option<Expr>) -> Self
pub fn inner_join(self, right: Relation, on: Expr) -> Self
pub fn left_join(self, right: Relation, on: Expr) -> Self
pub fn right_join(self, right: Relation, on: Expr) -> Self
pub fn full_join(self, right: Relation, on: Expr) -> Self
pub fn cross_join(self, right: Relation) -> Self
pub fn group_by(self, grouping: Grouping) -> Self
pub fn having(self, expression: impl Into<Expr>) -> Self
pub fn window(self, window: NamedWindow) -> Self
pub fn order_by(self, values: impl IntoIterator<Item = Order>) -> Self
pub fn limit(self, value: u64) -> Self
pub fn offset(self, value: u64) -> Self
pub fn with_cte(self, cte: CommonTableExpression) -> Self
pub fn recursive(self, value: bool) -> Self
pub fn set_operation(self, operator: SetOperator, query: QueryBuilder) -> Self
pub fn expected_shape(self, shape: Vec<ResultColumnDescriptor>) -> Self
pub fn into_select(self) -> Select
pub fn derived(self, alias: impl Into<String>) -> Relation
pub fn explain(&self, analyze: bool) -> Result<IrDocument, BuilderError>
pub fn fetch<S: OrmSession>( self, session: S, ) -> Result<S::QueryOutput, BuilderExecutionError<S::Error>>
pub async fn fetch_async<S: AsyncOrmSession>( self, session: &mut S, ) -> Result<S::QueryOutput, BuilderExecutionError<S::Error>>
Trait Implementations§
Source§impl Clone for QueryBuilder
impl Clone for QueryBuilder
Source§fn clone(&self) -> QueryBuilder
fn clone(&self) -> QueryBuilder
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 QueryBuilder
impl Debug for QueryBuilder
Source§impl OrmBuilder for QueryBuilder
impl OrmBuilder for QueryBuilder
fn document(&self) -> Result<IrDocument, BuilderError>
fn to_json(&self) -> Result<String, BuilderJsonError>
fn to_sql(&self) -> Result<CompiledStatement, BuilderSqlError>
Source§impl PartialEq for QueryBuilder
impl PartialEq for QueryBuilder
impl StructuralPartialEq for QueryBuilder
Auto Trait Implementations§
impl Freeze for QueryBuilder
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnsafeUnpin for QueryBuilder
impl UnwindSafe for QueryBuilder
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