pub enum Dialect {
Any,
MySql,
Postgres,
Sqlite,
}Expand description
Whose lexical rules a scan follows.
Variants§
Any
SQL that may be meant for any backend: PostgreSQL’s rules, plus
SQLite’s [..] identifiers, and an unclosed dollar quote read as a
plain $.
MySql
MySQL and MariaDB: # comments, -- only before whitespace,
backslash escapes in strings, block comments that do not nest.
Postgres
PostgreSQL: nested block comments, dollar quotes, $n parameters,
backslash escapes only in E'..' strings.
Sqlite
SQLite: [..] identifiers, block comments that do not nest, named
$/:/@/# parameters, no backslash escapes.
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Forget for Dialect
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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