pub enum KeywordDialect {
Shared,
SnowflakeOnly,
DatabricksOnly,
}Expand description
Which dialect(s) reserve a given keyword. The grammar treats a word as a keyword only when the
active Dialect reserves it; otherwise the word is an ordinary identifier.
Variants§
Reserved in every dialect (standard SQL words: SELECT, FROM, JOIN, …).
SnowflakeOnly
Reserved in Snowflake only; a plain identifier under Databricks. These are Snowflake-specific DDL/feature/scripting words that are absent from the Spark SQL keyword table.
DatabricksOnly
Reserved in Databricks only; a plain identifier under Snowflake. (None today — the variant exists so a Databricks-specific reserved word can be added without reshaping the model.)
Implementations§
Source§impl KeywordDialect
impl KeywordDialect
Sourcepub fn reserved_in(self, dialect: Dialect) -> bool
pub fn reserved_in(self, dialect: Dialect) -> bool
Does dialect reserve a keyword carrying this classification?
Trait Implementations§
Source§impl Clone for KeywordDialect
impl Clone for KeywordDialect
Source§fn clone(&self) -> KeywordDialect
fn clone(&self) -> KeywordDialect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeywordDialect
Source§impl Debug for KeywordDialect
impl Debug for KeywordDialect
impl Eq for KeywordDialect
Source§impl PartialEq for KeywordDialect
impl PartialEq for KeywordDialect
impl StructuralPartialEq for KeywordDialect
Auto Trait Implementations§
impl Freeze for KeywordDialect
impl RefUnwindSafe for KeywordDialect
impl Send for KeywordDialect
impl Sync for KeywordDialect
impl Unpin for KeywordDialect
impl UnsafeUnpin for KeywordDialect
impl UnwindSafe for KeywordDialect
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