1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use super::base::Dialect;

pub fn dialect_selector(s: &str) -> Option<Dialect> {
    match s {
        "ansi" => Some(crate::dialects::ansi::ansi_dialect()),
        "bigquery" => Some(crate::dialects::bigquery::bigquery_dialect()),
        _ => None,
    }
}

pub fn get_default_dialect() -> &'static str {
    "ansi"
}

/// Dialect Tuple object for describing dialects.
pub struct DialectTuple {
    pub label: String,
    pub name: String,
    pub inherits_from: String,
}

/// Generate a readout of available dialects.
pub fn dialect_readout() -> Vec<String> {
    panic!("dialect_readout not implemented yet");
}