Enhancing Trailing Comma Option (#1212)

This commit is contained in:
Mohamed Abdeen 2024-06-07 13:44:04 +03:00 committed by GitHub
parent a0f511cb21
commit 6d4776b482
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 118 additions and 12 deletions

View file

@ -251,6 +251,14 @@ pub trait Dialect: Debug + Any {
// return None to fall back to the default behavior
None
}
/// Does the dialect support trailing commas around the query?
fn supports_trailing_commas(&self) -> bool {
false
}
/// Does the dialect support trailing commas in the projection list?
fn supports_projection_trailing_commas(&self) -> bool {
self.supports_trailing_commas()
}
/// Dialect-specific infix parser override
fn parse_infix(
&self,