pub enum ConnectByKind {
ConnectBy {
connect_token: AttachedToken,
nocycle: bool,
relationships: Vec<Expr>,
},
StartWith {
start_token: AttachedToken,
condition: Box<Expr>,
},
}Expand description
Joins a table to itself to process hierarchical data in the table.
See https://docs.snowflake.com/en/sql-reference/constructs/connect-by. See https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/Hierarchical-Queries.html
Variants§
ConnectBy
CONNECT BY
Fields
§
connect_token: AttachedTokenthe CONNECT token
StartWith
START WITH
Optional on Oracle
when comming after the CONNECT BY.
Fields
§
start_token: AttachedTokenthe START token
Trait Implementations§
Source§impl Clone for ConnectByKind
impl Clone for ConnectByKind
Source§fn clone(&self) -> ConnectByKind
fn clone(&self) -> ConnectByKind
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 moreSource§impl Debug for ConnectByKind
impl Debug for ConnectByKind
Source§impl Display for ConnectByKind
impl Display for ConnectByKind
Source§impl Hash for ConnectByKind
impl Hash for ConnectByKind
Source§impl Ord for ConnectByKind
impl Ord for ConnectByKind
Source§fn cmp(&self, other: &ConnectByKind) -> Ordering
fn cmp(&self, other: &ConnectByKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConnectByKind
impl PartialEq for ConnectByKind
Source§impl PartialOrd for ConnectByKind
impl PartialOrd for ConnectByKind
Source§impl Spanned for ConnectByKind
impl Spanned for ConnectByKind
Source§impl Visit for ConnectByKind
impl Visit for ConnectByKind
Source§impl VisitMut for ConnectByKind
impl VisitMut for ConnectByKind
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for ConnectByKind
impl StructuralPartialEq for ConnectByKind
Auto Trait Implementations§
impl Freeze for ConnectByKind
impl RefUnwindSafe for ConnectByKind
impl Send for ConnectByKind
impl Sync for ConnectByKind
impl Unpin for ConnectByKind
impl UnsafeUnpin for ConnectByKind
impl UnwindSafe for ConnectByKind
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