mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-07 04:30:24 +00:00
Snowflake: Support GRANT CREATE SCHEMA
GRANT .. ON ALL FUNCTIONS IN SCHEMA
(#1964)
This commit is contained in:
parent
40b187f32a
commit
6a5ef48921
3 changed files with 24 additions and 0 deletions
|
@ -14108,6 +14108,15 @@ impl<'a> Parser<'a> {
|
|||
Some(GrantObjects::AllMaterializedViewsInSchema {
|
||||
schemas: self.parse_comma_separated(|p| p.parse_object_name(false))?,
|
||||
})
|
||||
} else if self.parse_keywords(&[
|
||||
Keyword::ALL,
|
||||
Keyword::FUNCTIONS,
|
||||
Keyword::IN,
|
||||
Keyword::SCHEMA,
|
||||
]) {
|
||||
Some(GrantObjects::AllFunctionsInSchema {
|
||||
schemas: self.parse_comma_separated(|p| p.parse_object_name(false))?,
|
||||
})
|
||||
} else if self.parse_keywords(&[
|
||||
Keyword::FUTURE,
|
||||
Keyword::SCHEMAS,
|
||||
|
@ -14414,6 +14423,8 @@ impl<'a> Parser<'a> {
|
|||
Some(ActionCreateObjectType::Integration)
|
||||
} else if self.parse_keyword(Keyword::ROLE) {
|
||||
Some(ActionCreateObjectType::Role)
|
||||
} else if self.parse_keyword(Keyword::SCHEMA) {
|
||||
Some(ActionCreateObjectType::Schema)
|
||||
} else if self.parse_keyword(Keyword::SHARE) {
|
||||
Some(ActionCreateObjectType::Share)
|
||||
} else if self.parse_keyword(Keyword::USER) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue