use crate::dialect::Dialect;
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct TeradataDialect;
impl Dialect for TeradataDialect {
fn identifier_quote_style(&self, _identifier: &str) -> Option<char> {
Some('"')
}
fn is_delimited_identifier_start(&self, ch: char) -> bool {
ch == '"'
}
fn is_identifier_start(&self, ch: char) -> bool {
ch.is_alphabetic() || ch == '_' || ch == '#' || ch == '$'
}
fn is_identifier_part(&self, ch: char) -> bool {
ch.is_alphanumeric() || self.is_identifier_start(ch)
}
fn supports_group_by_expr(&self) -> bool {
true
}
fn supports_boolean_literals(&self) -> bool {
false
}
fn require_interval_qualifier(&self) -> bool {
true
}
fn supports_comment_on(&self) -> bool {
true
}
fn supports_create_table_select(&self) -> bool {
true
}
fn supports_execute_immediate(&self) -> bool {
true
}
fn supports_top_before_distinct(&self) -> bool {
true
}
fn supports_window_function_null_treatment_arg(&self) -> bool {
true
}
fn supports_string_literal_concatenation(&self) -> bool {
true
}
}