toasty-core 0.10.0

Core types, schema representations, and driver interface for Toasty
Documentation
/// 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`](super::Capability::sql) rather than discovered from a
/// driver at runtime.
///
/// Dialect-compatible engines share a variant: Turso reports
/// [`Sqlite`](Self::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);
/// ```
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Dialect {
    /// SQLite, and engines that accept SQLite's SQL.
    Sqlite,

    /// PostgreSQL.
    Postgresql,

    /// MySQL.
    Mysql,
}