sqltk_parser/dialect/
generic.rs1use crate::dialect::Dialect;
19
20#[derive(Debug, Default)]
23pub struct GenericDialect;
24
25impl Dialect for GenericDialect {
26 fn is_delimited_identifier_start(&self, ch: char) -> bool {
27 ch == '"' || ch == '`'
28 }
29
30 fn is_identifier_start(&self, ch: char) -> bool {
31 ch.is_alphabetic() || ch == '_' || ch == '#' || ch == '@'
32 }
33
34 fn is_identifier_part(&self, ch: char) -> bool {
35 ch.is_alphabetic()
36 || ch.is_ascii_digit()
37 || ch == '@'
38 || ch == '$'
39 || ch == '#'
40 || ch == '_'
41 }
42
43 fn supports_unicode_string_literal(&self) -> bool {
44 true
45 }
46
47 fn supports_group_by_expr(&self) -> bool {
48 true
49 }
50
51 fn supports_connect_by(&self) -> bool {
52 true
53 }
54
55 fn supports_match_recognize(&self) -> bool {
56 true
57 }
58
59 fn supports_start_transaction_modifier(&self) -> bool {
60 true
61 }
62
63 fn supports_window_function_null_treatment_arg(&self) -> bool {
64 true
65 }
66
67 fn supports_dictionary_syntax(&self) -> bool {
68 true
69 }
70
71 fn supports_window_clause_named_window_reference(&self) -> bool {
72 true
73 }
74
75 fn supports_parenthesized_set_variables(&self) -> bool {
76 true
77 }
78
79 fn supports_select_wildcard_except(&self) -> bool {
80 true
81 }
82
83 fn support_map_literal_syntax(&self) -> bool {
84 true
85 }
86
87 fn allow_extract_custom(&self) -> bool {
88 true
89 }
90
91 fn allow_extract_single_quotes(&self) -> bool {
92 true
93 }
94
95 fn supports_create_index_with_clause(&self) -> bool {
96 true
97 }
98
99 fn supports_explain_with_utility_options(&self) -> bool {
100 true
101 }
102
103 fn supports_limit_comma(&self) -> bool {
104 true
105 }
106
107 fn supports_asc_desc_in_column_definition(&self) -> bool {
108 true
109 }
110
111 fn supports_try_convert(&self) -> bool {
112 true
113 }
114}