Skip to main content

DialectType

Enum DialectType 

Source
pub enum DialectType {
Show 33 variants Generic, PostgreSQL, MySQL, BigQuery, Snowflake, DuckDB, SQLite, Hive, Spark, Trino, Presto, Redshift, TSQL, Oracle, ClickHouse, Databricks, Athena, Teradata, Doris, StarRocks, Materialize, RisingWave, SingleStore, CockroachDB, TiDB, Druid, Solr, Tableau, Dune, Fabric, Drill, Dremio, Exasol,
}
Expand description

Enumeration of all supported SQL dialects.

Each variant corresponds to a specific SQL database engine or query language. The Generic variant represents standard SQL with no dialect-specific behavior, and is used as the default when no dialect is specified.

Dialect names are case-insensitive when parsed from strings via [FromStr]. Some dialects accept aliases (e.g., “mssql” and “sqlserver” both resolve to TSQL).

Variants§

§

Generic

Standard SQL with no dialect-specific behavior (default).

§

PostgreSQL

PostgreSQL – advanced open-source relational database.

§

MySQL

MySQL – widely-used open-source relational database (also accepts “mysql”).

§

BigQuery

Google BigQuery – serverless cloud data warehouse with unique syntax (backtick quoting, STRUCT types, QUALIFY).

§

Snowflake

Snowflake – cloud data platform with QUALIFY clause, FLATTEN, and variant types.

§

DuckDB

DuckDB – in-process analytical database with modern SQL extensions.

§

SQLite

SQLite – lightweight embedded relational database.

§

Hive

Apache Hive – data warehouse on Hadoop with HiveQL syntax.

§

Spark

Apache Spark SQL – distributed query engine (also accepts “spark2”).

§

Trino

Trino – distributed SQL query engine (formerly PrestoSQL).

§

Presto

PrestoDB – distributed SQL query engine for big data.

§

Redshift

Amazon Redshift – cloud data warehouse based on PostgreSQL.

§

TSQL

Transact-SQL (T-SQL) – Microsoft SQL Server and Azure SQL (also accepts “mssql”, “sqlserver”).

§

Oracle

Oracle Database – commercial relational database with PL/SQL extensions.

§

ClickHouse

ClickHouse – column-oriented OLAP database for real-time analytics.

§

Databricks

Databricks SQL – Spark-based lakehouse platform with QUALIFY support.

§

Athena

Amazon Athena – serverless query service (hybrid Trino/Hive engine).

§

Teradata

Teradata – enterprise data warehouse with proprietary SQL extensions.

§

Doris

Apache Doris – real-time analytical database (MySQL-compatible).

§

StarRocks

StarRocks – sub-second OLAP database (MySQL-compatible).

§

Materialize

Materialize – streaming SQL database built on differential dataflow.

§

RisingWave

RisingWave – distributed streaming database with PostgreSQL compatibility.

§

SingleStore

SingleStore (formerly MemSQL) – distributed SQL database (also accepts “memsql”).

§

CockroachDB

CockroachDB – distributed SQL database with PostgreSQL compatibility (also accepts “cockroach”).

§

TiDB

TiDB – distributed HTAP database with MySQL compatibility.

§

Druid

Apache Druid – real-time analytics database.

§

Solr

Apache Solr – search platform with SQL interface.

§

Tableau

Tableau – data visualization platform with its own SQL dialect.

§

Dune

Dune Analytics – blockchain analytics SQL engine.

§

Fabric

Microsoft Fabric – unified analytics platform (T-SQL based).

§

Drill

Apache Drill – schema-free SQL query engine for big data.

§

Dremio

Dremio – data lakehouse platform with Arrow-based query engine.

§

Exasol

Exasol – in-memory analytic database.

Trait Implementations§

Source§

impl Clone for DialectType

Source§

fn clone(&self) -> DialectType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DialectType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DialectType

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for DialectType

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for DialectType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for DialectType

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for DialectType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for DialectType

Source§

fn eq(&self, other: &DialectType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for DialectType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for DialectType

Source§

impl Eq for DialectType

Source§

impl StructuralPartialEq for DialectType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,