sqlparser/dialect/
clickhouse.rs1use crate::dialect::Dialect;
19
20#[derive(#[automatically_derived]
impl ::core::fmt::Debug for ClickHouseDialect {
#[inline]
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
::core::fmt::Formatter::write_str(f, "ClickHouseDialect")
}
}Debug, #[automatically_derived]
impl ::core::default::Default for ClickHouseDialect {
#[inline]
fn default() -> ClickHouseDialect { ClickHouseDialect {} }
}Default, #[automatically_derived]
impl ::core::clone::Clone for ClickHouseDialect {
#[inline]
fn clone(&self) -> ClickHouseDialect { *self }
}Clone, #[automatically_derived]
impl ::core::marker::Copy for ClickHouseDialect { }Copy, #[automatically_derived]
impl ::core::cmp::PartialEq for ClickHouseDialect {
#[inline]
fn eq(&self, other: &ClickHouseDialect) -> bool { true }
}PartialEq, #[automatically_derived]
impl ::core::cmp::Eq for ClickHouseDialect {
#[inline]
#[doc(hidden)]
#[coverage(off)]
fn assert_fields_are_eq(&self) {}
}Eq, #[automatically_derived]
impl ::core::hash::Hash for ClickHouseDialect {
#[inline]
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) {}
}Hash, #[automatically_derived]
impl ::core::cmp::PartialOrd for ClickHouseDialect {
#[inline]
fn partial_cmp(&self, other: &ClickHouseDialect)
-> ::core::option::Option<::core::cmp::Ordering> {
::core::option::Option::Some(::core::cmp::Ordering::Equal)
}
}PartialOrd, #[automatically_derived]
impl ::core::cmp::Ord for ClickHouseDialect {
#[inline]
fn cmp(&self, other: &ClickHouseDialect) -> ::core::cmp::Ordering {
::core::cmp::Ordering::Equal
}
}Ord)]
22#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
23pub struct ClickHouseDialect {}
24
25impl Dialect for ClickHouseDialect {
26 fn is_identifier_start(&self, ch: char) -> bool {
27 ch.is_ascii_lowercase() || ch.is_ascii_uppercase() || ch == '_'
29 }
30
31 fn is_identifier_part(&self, ch: char) -> bool {
32 self.is_identifier_start(ch) || ch.is_ascii_digit()
33 }
34
35 fn supports_string_literal_backslash_escape(&self) -> bool {
36 true
37 }
38
39 fn supports_select_wildcard_except(&self) -> bool {
40 true
41 }
42
43 fn describe_requires_table_keyword(&self) -> bool {
44 true
45 }
46
47 fn require_interval_qualifier(&self) -> bool {
48 true
49 }
50
51 fn supports_limit_comma(&self) -> bool {
52 true
53 }
54
55 fn supports_insert_table_function(&self) -> bool {
56 true
57 }
58
59 fn supports_insert_format(&self) -> bool {
60 true
61 }
62
63 fn supports_numeric_literal_underscores(&self) -> bool {
64 true
65 }
66
67 fn supports_dictionary_syntax(&self) -> bool {
72 true
73 }
74
75 fn supports_lambda_functions(&self) -> bool {
77 true
78 }
79
80 fn supports_from_first_select(&self) -> bool {
81 true
82 }
83
84 fn supports_order_by_all(&self) -> bool {
86 true
87 }
88
89 fn supports_group_by_expr(&self) -> bool {
91 true
92 }
93
94 fn supports_group_by_with_modifier(&self) -> bool {
96 true
97 }
98
99 fn supports_nested_comments(&self) -> bool {
102 true
103 }
104
105 fn supports_optimize_table(&self) -> bool {
107 true
108 }
109
110 fn supports_prewhere(&self) -> bool {
112 true
113 }
114
115 fn supports_with_fill(&self) -> bool {
117 true
118 }
119
120 fn supports_limit_by(&self) -> bool {
122 true
123 }
124
125 fn supports_interpolate(&self) -> bool {
127 true
128 }
129
130 fn supports_settings(&self) -> bool {
132 true
133 }
134
135 fn supports_select_format(&self) -> bool {
137 true
138 }
139
140 fn supports_select_wildcard_replace(&self) -> bool {
142 true
143 }
144}