pub enum Dialect {
Sqlite,
Postgres,
MySql,
MsSql,
Oracle,
}Expand description
SQL dialect of the target database, used to generate portable DDL and queries.
Derived from the connection URL scheme (see Dialect::from_scheme).
Deliberately not feature-gated: it is a pure data classification of
the SQL we emit and carries no driver dependency, so it stays
available regardless of which backend features are compiled in.
Variants§
Implementations§
Source§impl Dialect
impl Dialect
Sourcepub fn from_scheme(scheme: &str) -> Option<Self>
pub fn from_scheme(scheme: &str) -> Option<Self>
Map a connection URL scheme to a Dialect.
Returns None for unrecognised schemes; callers fall back to
Dialect::Sqlite semantics (ANSI LIMIT, TEXT columns).
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
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
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§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.