pub enum Dialect {
Sqlite,
Postgresql,
Mysql,
}Expand description
The SQL dialect a driver speaks.
Everything Toasty renders as SQL is a function of the dialect, not of the
live connection, so the dialect is named on
Capability::sql rather than discovered from a
driver at runtime.
Dialect-compatible engines share a variant: Turso reports
Sqlite because it accepts SQLite’s SQL.
§Examples
use toasty_core::driver::{Capability, Dialect};
assert_eq!(Capability::SQLITE.sql, Some(Dialect::Sqlite));
assert_eq!(Capability::DYNAMODB.sql, None);Variants§
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.