pub struct WithQuery<T: ClickTable> { /* private fields */ }Expand description
Builder for queries with CTEs (WITH clause)
Implementations§
Source§impl<T: ClickTable> WithQuery<T>
impl<T: ClickTable> WithQuery<T>
Sourcepub fn with<T2: ClickTable>(self, cte: CTE<T2>) -> Self
pub fn with<T2: ClickTable>(self, cte: CTE<T2>) -> Self
Add a CTE to the WITH clause
Sourcepub fn query(self, main_query: QueryBuilder<T>) -> String
pub fn query(self, main_query: QueryBuilder<T>) -> String
Execute the main query with all CTEs
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for WithQuery<T>
impl<T> RefUnwindSafe for WithQuery<T>where
T: RefUnwindSafe,
impl<T> Send for WithQuery<T>
impl<T> Sync for WithQuery<T>
impl<T> Unpin for WithQuery<T>where
T: Unpin,
impl<T> UnwindSafe for WithQuery<T>where
T: UnwindSafe,
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