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: AttachedToken
the CONNECT token
StartWith
START WITH
Optional on Oracle
when comming after the CONNECT BY.
Fields
§start_token: AttachedToken
the 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 more
Source§impl Debug for ConnectByKind
impl Debug for ConnectByKind
Source§impl<'de> Deserialize<'de> for ConnectByKind
impl<'de> Deserialize<'de> for ConnectByKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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,
where 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§fn partial_cmp(&self, other: &ConnectByKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ConnectByKind) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for self and other) and is used by the
<= operator. Read more
Source§impl Serialize for ConnectByKind
impl Serialize 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 more
impl 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 UnwindSafe for ConnectByKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
where 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
where T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
where T: for<'de> Deserialize<'de>,