pub struct SetOperation { /* private fields */ }Expand description
A set operation combining multiple queries.
Implementations§
Source§impl SetOperation
impl SetOperation
Sourcepub fn new(query_sql: impl Into<String>, params: Vec<Value>) -> Self
pub fn new(query_sql: impl Into<String>, params: Vec<Value>) -> Self
Create a new set operation from a single query.
Sourcepub fn union(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
pub fn union(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
Add a UNION operation with another query.
Sourcepub fn union_all(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
pub fn union_all(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
Add a UNION ALL operation with another query.
Sourcepub fn intersect(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
pub fn intersect(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
Add an INTERSECT operation with another query.
Sourcepub fn intersect_all(
self,
query_sql: impl Into<String>,
params: Vec<Value>,
) -> Self
pub fn intersect_all( self, query_sql: impl Into<String>, params: Vec<Value>, ) -> Self
Add an INTERSECT ALL operation with another query.
Sourcepub fn except(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
pub fn except(self, query_sql: impl Into<String>, params: Vec<Value>) -> Self
Add an EXCEPT operation with another query.
Sourcepub fn except_all(
self,
query_sql: impl Into<String>,
params: Vec<Value>,
) -> Self
pub fn except_all( self, query_sql: impl Into<String>, params: Vec<Value>, ) -> Self
Add an EXCEPT ALL operation with another query.
Sourcepub fn order_by_many(self, orders: Vec<OrderBy>) -> Self
pub fn order_by_many(self, orders: Vec<OrderBy>) -> Self
Add multiple ORDER BY clauses.
Trait Implementations§
Source§impl Clone for SetOperation
impl Clone for SetOperation
Source§fn clone(&self) -> SetOperation
fn clone(&self) -> SetOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SetOperation
impl RefUnwindSafe for SetOperation
impl Send for SetOperation
impl Sync for SetOperation
impl Unpin for SetOperation
impl UnsafeUnpin for SetOperation
impl UnwindSafe for SetOperation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).