pub struct Cte {
pub name: StrRef,
pub query: QueryRef,
pub columns: Slice,
}Expand description
A WITH name AS MATERIALIZED (query), which is run once and read wherever it is named.
Only the materialised ones are here. A plain WITH and a NOT MATERIALIZED one are put into
every place they are named while the tree is being built, the way the reference binary does it,
so by the time anything reads an Ast there is no name left to resolve.
Fields§
§name: StrRefThe name it was written with.
query: QueryRefWhat produces its rows.
columns: SliceThe column names from AS name(a, b), as a run of StrRef, empty when there were none.
Trait Implementations§
impl Copy for Cte
impl Eq for Cte
impl StructuralPartialEq for Cte
Auto Trait Implementations§
impl Freeze for Cte
impl RefUnwindSafe for Cte
impl Send for Cte
impl Sync for Cte
impl Unpin for Cte
impl UnsafeUnpin for Cte
impl UnwindSafe for Cte
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