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 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_bitwise_shift_operators(&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 allow_extract_single_quotes(&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
}
fn supports_select_wildcard_exclude(&self) -> bool {
true
}
fn supports_notnull_operator(&self) -> bool {
true
}
fn supports_install(&self) -> bool {
true
}
fn supports_detach(&self) -> bool {
true
}
fn supports_select_wildcard_replace(&self) -> bool {
true
}
}