Extended dialect triat to support numeric prefixed identifiers (#1188)

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
groobyming 2024-05-04 02:20:12 +08:00 committed by GitHub
parent 8e64b73e9d
commit 5ea9c01bb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 68 additions and 5 deletions

View file

@ -185,6 +185,11 @@ pub trait Dialect: Debug + Any {
fn supports_named_fn_args_with_eq_operator(&self) -> bool {
false
}
/// Returns true if the dialect supports identifiers starting with a numeric
/// prefix such as tables named: `59901_user_login`
fn supports_numeric_prefix(&self) -> bool {
false
}
/// Returns true if the dialects supports specifying null treatment
/// as part of a window function's parameter list. As opposed
/// to after the parameter list.