pub struct CteBuilder { /* private fields */ }Expand description
Builder for CTEs.
Implementations§
Source§impl CteBuilder
impl CteBuilder
Sourcepub fn materialized(self) -> Self
pub fn materialized(self) -> Self
Set materialization hint (PostgreSQL only).
Sourcepub fn not_materialized(self) -> Self
pub fn not_materialized(self) -> Self
Prevent materialization (PostgreSQL only).
Sourcepub fn search_breadth_first<I, S>(
self,
columns: I,
set_column: impl Into<String>,
) -> Self
pub fn search_breadth_first<I, S>( self, columns: I, set_column: impl Into<String>, ) -> Self
Add breadth-first search (PostgreSQL only).
Sourcepub fn search_depth_first<I, S>(
self,
columns: I,
set_column: impl Into<String>,
) -> Self
pub fn search_depth_first<I, S>( self, columns: I, set_column: impl Into<String>, ) -> Self
Add depth-first search (PostgreSQL only).
Sourcepub fn cycle<I, S>(
self,
columns: I,
set_column: impl Into<String>,
using_column: impl Into<String>,
) -> Self
pub fn cycle<I, S>( self, columns: I, set_column: impl Into<String>, using_column: impl Into<String>, ) -> Self
Add cycle detection (PostgreSQL only).
Sourcepub fn build(self) -> QueryResult<Cte>
pub fn build(self) -> QueryResult<Cte>
Build the CTE.
Trait Implementations§
Source§impl Clone for CteBuilder
impl Clone for CteBuilder
Source§fn clone(&self) -> CteBuilder
fn clone(&self) -> CteBuilder
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 CteBuilder
impl RefUnwindSafe for CteBuilder
impl Send for CteBuilder
impl Sync for CteBuilder
impl Unpin for CteBuilder
impl UnwindSafe for CteBuilder
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