pub enum SqlDialect {
Generic,
Postgres,
MySQL,
SQLite,
}Expand description
SQL dialect selection for parsing.
Different databases have dialect-specific syntax; selecting the correct dialect improves parse accuracy for backend-specific SQL.
Variants§
Generic
ANSI / generic SQL dialect.
Postgres
PostgreSQL dialect (supports :: casts, $1 params, etc.).
MySQL
MySQL dialect (supports backtick identifiers, etc.).
SQLite
SQLite dialect (supports AUTOINCREMENT, backtick/bracket identifiers, etc.).
Trait Implementations§
Source§impl Clone for SqlDialect
impl Clone for SqlDialect
impl Copy for SqlDialect
Source§impl Debug for SqlDialect
impl Debug for SqlDialect
impl Eq for SqlDialect
Source§impl Hash for SqlDialect
impl Hash for SqlDialect
Source§impl PartialEq for SqlDialect
impl PartialEq for SqlDialect
impl StructuralPartialEq for SqlDialect
Auto Trait Implementations§
impl Freeze for SqlDialect
impl RefUnwindSafe for SqlDialect
impl Send for SqlDialect
impl Sync for SqlDialect
impl Unpin for SqlDialect
impl UnsafeUnpin for SqlDialect
impl UnwindSafe for SqlDialect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.