@@ -5902,12 +5902,20 @@ pub enum GrantObjects {
5902
5902
AllSequencesInSchema { schemas : Vec < ObjectName > } ,
5903
5903
/// Grant privileges on `ALL TABLES IN SCHEMA <schema_name> [, ...]`
5904
5904
AllTablesInSchema { schemas : Vec < ObjectName > } ,
5905
+ /// Grant privileges on specific databases
5906
+ Databases ( Vec < ObjectName > ) ,
5905
5907
/// Grant privileges on specific schemas
5906
5908
Schemas ( Vec < ObjectName > ) ,
5907
5909
/// Grant privileges on specific sequences
5908
5910
Sequences ( Vec < ObjectName > ) ,
5909
5911
/// Grant privileges on specific tables
5910
5912
Tables ( Vec < ObjectName > ) ,
5913
+ /// Grant privileges on specific views
5914
+ Views ( Vec < ObjectName > ) ,
5915
+ /// Grant privileges on specific warehouses
5916
+ Warehouses ( Vec < ObjectName > ) ,
5917
+ /// Grant privileges on specific integrations
5918
+ Integrations ( Vec < ObjectName > ) ,
5911
5919
}
5912
5920
5913
5921
impl fmt:: Display for GrantObjects {
@@ -5916,12 +5924,24 @@ impl fmt::Display for GrantObjects {
5916
5924
GrantObjects :: Sequences ( sequences) => {
5917
5925
write ! ( f, "SEQUENCE {}" , display_comma_separated( sequences) )
5918
5926
}
5927
+ GrantObjects :: Databases ( databases) => {
5928
+ write ! ( f, "DATABASE {}" , display_comma_separated( databases) )
5929
+ }
5919
5930
GrantObjects :: Schemas ( schemas) => {
5920
5931
write ! ( f, "SCHEMA {}" , display_comma_separated( schemas) )
5921
5932
}
5922
5933
GrantObjects :: Tables ( tables) => {
5923
5934
write ! ( f, "{}" , display_comma_separated( tables) )
5924
5935
}
5936
+ GrantObjects :: Views ( views) => {
5937
+ write ! ( f, "VIEW {}" , display_comma_separated( views) )
5938
+ }
5939
+ GrantObjects :: Warehouses ( warehouses) => {
5940
+ write ! ( f, "WAREHOUSE {}" , display_comma_separated( warehouses) )
5941
+ }
5942
+ GrantObjects :: Integrations ( integrations) => {
5943
+ write ! ( f, "INTEGRATION {}" , display_comma_separated( integrations) )
5944
+ }
5925
5945
GrantObjects :: AllSequencesInSchema { schemas } => {
5926
5946
write ! (
5927
5947
f,
0 commit comments