mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-13 07:22:02 +00:00
Enhancing Trailing Comma Option (#1212)
This commit is contained in:
parent
a0f511cb21
commit
6d4776b482
7 changed files with 118 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue