@@ -5884,12 +5884,20 @@ pub enum GrantObjects {
5884
5884
AllSequencesInSchema { schemas : Vec < ObjectName > } ,
5885
5885
/// Grant privileges on `ALL TABLES IN SCHEMA <schema_name> [, ...]`
5886
5886
AllTablesInSchema { schemas : Vec < ObjectName > } ,
5887
+ /// Grant privileges on specific databases
5888
+ Databases ( Vec < ObjectName > ) ,
5887
5889
/// Grant privileges on specific schemas
5888
5890
Schemas ( Vec < ObjectName > ) ,
5889
5891
/// Grant privileges on specific sequences
5890
5892
Sequences ( Vec < ObjectName > ) ,
5891
5893
/// Grant privileges on specific tables
5892
5894
Tables ( Vec < ObjectName > ) ,
5895
+ /// Grant privileges on specific views
5896
+ Views ( Vec < ObjectName > ) ,
5897
+ /// Grant privileges on specific warehouses
5898
+ Warehouses ( Vec < ObjectName > ) ,
5899
+ /// Grant privileges on specific integrations
5900
+ Integrations ( Vec < ObjectName > ) ,
5893
5901
}
5894
5902
5895
5903
impl fmt:: Display for GrantObjects {
@@ -5898,12 +5906,24 @@ impl fmt::Display for GrantObjects {
5898
5906
GrantObjects :: Sequences ( sequences) => {
5899
5907
write ! ( f, "SEQUENCE {}" , display_comma_separated( sequences) )
5900
5908
}
5909
+ GrantObjects :: Databases ( databases) => {
5910
+ write ! ( f, "DATABASE {}" , display_comma_separated( databases) )
5911
+ }
5901
5912
GrantObjects :: Schemas ( schemas) => {
5902
5913
write ! ( f, "SCHEMA {}" , display_comma_separated( schemas) )
5903
5914
}
5904
5915
GrantObjects :: Tables ( tables) => {
5905
5916
write ! ( f, "{}" , display_comma_separated( tables) )
5906
5917
}
5918
+ GrantObjects :: Views ( views) => {
5919
+ write ! ( f, "VIEW {}" , display_comma_separated( views) )
5920
+ }
5921
+ GrantObjects :: Warehouses ( warehouses) => {
5922
+ write ! ( f, "WAREHOUSE {}" , display_comma_separated( warehouses) )
5923
+ }
5924
+ GrantObjects :: Integrations ( integrations) => {
5925
+ write ! ( f, "INTEGRATION {}" , display_comma_separated( integrations) )
5926
+ }
5907
5927
GrantObjects :: AllSequencesInSchema { schemas } => {
5908
5928
write ! (
5909
5929
f,
0 commit comments