Struct ParserOptions
pub struct ParserOptions {
pub trailing_commas: bool,
pub unescape: bool,
pub require_semicolon_stmt_delimiter: bool,
}Expand description
Options that control how the Parser parses SQL text
Allow trailing commas in lists (e.g. a, b,).
Controls if the parser expects a semi-colon token
between statements. Default is true.
Source§
Source
Set if trailing commas are allowed.
If this option is false (the default), the following SQL will
not parse. If the option is true, the SQL will parse.
SELECT
foo,
bar,
FROM bazSource
Set if literal values are unescaped. Defaults to true. See
Tokenizer::with_unescape for more details.