pub struct ParserConfig {
pub allow_trailing_commas: bool,
pub dialect: Option<DialectType>,
}Expand description
Configuration for the SQL Parser.
Controls dialect-specific parsing behavior. Most users can rely on the
Default implementation; set dialect when you need to handle syntax
that is unique to a particular database engine (e.g. BigQuery backtick
quoting, TSQL square-bracket identifiers, Snowflake QUALIFY clause).
Fields§
§allow_trailing_commas: boolAllow trailing commas in SELECT lists (e.g. BigQuery permits SELECT a, b, FROM t).
dialect: Option<DialectType>Dialect type for dialect-specific parsing behavior.
Trait Implementations§
Source§impl Clone for ParserConfig
impl Clone for ParserConfig
Source§fn clone(&self) -> ParserConfig
fn clone(&self) -> ParserConfig
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 ParserConfig
impl Debug for ParserConfig
Source§impl Default for ParserConfig
impl Default for ParserConfig
Source§fn default() -> ParserConfig
fn default() -> ParserConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParserConfig
impl RefUnwindSafe for ParserConfig
impl Send for ParserConfig
impl Sync for ParserConfig
impl Unpin for ParserConfig
impl UnwindSafe for ParserConfig
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