pub struct CteChain { /* private fields */ }Expand description
A common table expression under construction.
with("recent", body) is already a complete mod; the methods add the optional
parts of PostgreSQL’s with_query production.
Implementations§
Source§impl CteChain
impl CteChain
Sourcepub fn columns(
self,
columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>,
) -> CteChain
pub fn columns( self, columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>, ) -> CteChain
Name the CTE’s output columns: WITH "c" ("a", "b") AS (…).
Sourcepub fn materialized(self) -> CteChain
pub fn materialized(self) -> CteChain
AS MATERIALIZED (…) — compute it once, whatever the planner would prefer.
Sourcepub fn not_materialized(self) -> CteChain
pub fn not_materialized(self) -> CteChain
AS NOT MATERIALIZED (…) — allow it to be folded into the outer query.
Sourcepub fn search_breadth(
self,
set: impl Into<Cow<'static, str>>,
columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>,
) -> CteChain
pub fn search_breadth( self, set: impl Into<Cow<'static, str>>, columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>, ) -> CteChain
SEARCH BREADTH FIRST BY cols SET col.
Sourcepub fn search_depth(
self,
set: impl Into<Cow<'static, str>>,
columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>,
) -> CteChain
pub fn search_depth( self, set: impl Into<Cow<'static, str>>, columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>, ) -> CteChain
SEARCH DEPTH FIRST BY cols SET col.
bob’s SearchBreadth sets SearchDepth too, which is a copy-paste slip; the
two are distinct here.
Sourcepub fn cycle(
self,
set: impl Into<Cow<'static, str>>,
using: impl Into<Cow<'static, str>>,
columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>,
) -> CteChain
pub fn cycle( self, set: impl Into<Cow<'static, str>>, using: impl Into<Cow<'static, str>>, columns: impl IntoIterator<Item = impl Into<Cow<'static, str>>>, ) -> CteChain
CYCLE cols SET mark USING path.
Sourcepub fn cycle_value(self, to: impl IntoExpr, default: impl IntoExpr) -> CteChain
pub fn cycle_value(self, to: impl IntoExpr, default: impl IntoExpr) -> CteChain
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CteChain
impl !UnwindSafe for CteChain
impl Freeze for CteChain
impl Send for CteChain
impl Sync for CteChain
impl Unpin for CteChain
impl UnsafeUnpin for CteChain
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