mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-14 15:59:03 +00:00
Extract a SQLFunction struct
This variant is getting rather large, and it's useful downstream to be able to pass around SQLFunction nodes without reinventing the wheel.
This commit is contained in:
parent
2308c1c6f7
commit
054a59df12
3 changed files with 40 additions and 36 deletions
|
@ -301,12 +301,12 @@ impl Parser {
|
|||
None
|
||||
};
|
||||
|
||||
Ok(ASTNode::SQLFunction {
|
||||
Ok(ASTNode::SQLFunction(SQLFunction {
|
||||
name,
|
||||
args,
|
||||
over,
|
||||
distinct,
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
pub fn parse_window_frame(&mut self) -> Result<Option<SQLWindowFrame>, ParserError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue