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 ClickHouseDialect {}
impl Dialect for ClickHouseDialect {
fn is_identifier_start(&self, ch: char) -> bool {
ch.is_ascii_lowercase() || ch.is_ascii_uppercase() || ch == '_'
}
fn is_identifier_part(&self, ch: char) -> bool {
self.is_identifier_start(ch) || ch.is_ascii_digit()
}
fn supports_string_literal_backslash_escape(&self) -> bool {
true
}
fn supports_select_wildcard_except(&self) -> bool {
true
}
fn describe_requires_table_keyword(&self) -> bool {
true
}
fn require_interval_qualifier(&self) -> bool {
true
}
fn supports_limit_comma(&self) -> bool {
true
}
fn supports_insert_table_function(&self) -> bool {
true
}
fn supports_insert_format(&self) -> bool {
true
}
fn supports_numeric_literal_underscores(&self) -> bool {
true
}
fn supports_dictionary_syntax(&self) -> bool {
true
}
fn supports_lambda_functions(&self) -> bool {
true
}
fn supports_from_first_select(&self) -> bool {
true
}
fn supports_order_by_all(&self) -> bool {
true
}
fn supports_group_by_expr(&self) -> bool {
true
}
fn supports_group_by_with_modifier(&self) -> bool {
true
}
fn supports_nested_comments(&self) -> bool {
true
}
fn supports_optimize_table(&self) -> bool {
true
}
fn supports_prewhere(&self) -> bool {
true
}
fn supports_with_fill(&self) -> bool {
true
}
fn supports_limit_by(&self) -> bool {
true
}
fn supports_interpolate(&self) -> bool {
true
}
fn supports_settings(&self) -> bool {
true
}
fn supports_select_format(&self) -> bool {
true
}
fn supports_select_wildcard_replace(&self) -> bool {
true
}
}