use crate::dialect::Dialect;
#[derive(Debug, Default)]
pub struct DuckDbDialect;
impl Dialect for DuckDbDialect {
fn supports_trailing_commas(&self) -> bool {
true
}
fn is_identifier_start(&self, ch: char) -> bool {
ch.is_alphabetic() || ch == '_'
}
fn is_identifier_part(&self, ch: char) -> bool {
ch.is_alphabetic() || ch.is_ascii_digit() || ch == '$' || ch == '_'
}
fn supports_filter_during_aggregation(&self) -> bool {
true
}
fn supports_group_by_expr(&self) -> bool {
true
}
fn supports_named_fn_args_with_eq_operator(&self) -> bool {
true
}
fn supports_named_fn_args_with_assignment_operator(&self) -> bool {
true
}
fn supports_dictionary_syntax(&self) -> bool {
true
}
fn support_map_literal_syntax(&self) -> bool {
true
}
fn supports_lambda_functions(&self) -> bool {
true
}
fn supports_explain_with_utility_options(&self) -> bool {
true
}
fn supports_load_extension(&self) -> bool {
true
}
fn supports_array_typedef_with_brackets(&self) -> bool {
true
}
fn supports_from_first_select(&self) -> bool {
true
}
fn supports_order_by_all(&self) -> bool {
true
}
}