@@ -39,11 +39,12 @@ pub use self::data_type::{
3939} ; 
4040pub  use  self :: dcl:: { AlterRoleOperation ,  ResetConfig ,  RoleOption ,  SetConfigValue ,  Use } ; 
4141pub  use  self :: ddl:: { 
42-     AlterColumnOperation ,  AlterIndexOperation ,  AlterTableOperation ,  ClusteredBy ,  ColumnDef , 
43-     ColumnOption ,  ColumnOptionDef ,  ConstraintCharacteristics ,  Deduplicate ,  DeferrableInitial , 
44-     GeneratedAs ,  GeneratedExpressionMode ,  IdentityProperty ,  IndexOption ,  IndexType , 
45-     KeyOrIndexDisplay ,  Owner ,  Partition ,  ProcedureParam ,  ReferentialAction ,  TableConstraint , 
46-     UserDefinedTypeCompositeAttributeDef ,  UserDefinedTypeRepresentation ,  ViewColumnDef , 
42+     AlterColumnOperation ,  AlterIndexOperation ,  AlterPolicyOperation ,  AlterTableOperation , 
43+     ClusteredBy ,  ColumnDef ,  ColumnOption ,  ColumnOptionDef ,  ConstraintCharacteristics ,  Deduplicate , 
44+     DeferrableInitial ,  GeneratedAs ,  GeneratedExpressionMode ,  IdentityProperty ,  IndexOption , 
45+     IndexType ,  KeyOrIndexDisplay ,  Owner ,  Partition ,  ProcedureParam ,  ReferentialAction , 
46+     TableConstraint ,  UserDefinedTypeCompositeAttributeDef ,  UserDefinedTypeRepresentation , 
47+     ViewColumnDef , 
4748} ; 
4849pub  use  self :: dml:: { CreateIndex ,  CreateTable ,  Delete ,  Insert } ; 
4950pub  use  self :: operator:: { BinaryOperator ,  UnaryOperator } ; 
@@ -2459,6 +2460,16 @@ pub enum Statement {
24592460        operation :  AlterRoleOperation , 
24602461    } , 
24612462    /// ```sql 
2463+      /// ALTER POLICY <NAME> ON <TABLE NAME> [<OPERATION>] 
2464+      /// ``` 
2465+      /// (Postgresql-specific) 
2466+      AlterPolicy  { 
2467+         name :  Ident , 
2468+         #[ cfg_attr( feature = "visitor" ,  visit( with = "visit_relation" ) ) ]  
2469+         table_name :  ObjectName , 
2470+         operation :  AlterPolicyOperation , 
2471+     } , 
2472+     /// ```sql 
24622473     /// ATTACH DATABASE 'path/to/file' AS alias 
24632474     /// ``` 
24642475     /// (SQLite-specific) 
@@ -4197,6 +4208,13 @@ impl fmt::Display for Statement {
41974208            Statement :: AlterRole  {  name,  operation }  => { 
41984209                write ! ( f,  "ALTER ROLE {name} {operation}" ) 
41994210            } 
4211+             Statement :: AlterPolicy  { 
4212+                 name, 
4213+                 table_name, 
4214+                 operation, 
4215+             }  => { 
4216+                 write ! ( f,  "ALTER POLICY {name} ON {table_name}{operation}" ) 
4217+             } 
42004218            Statement :: Drop  { 
42014219                object_type, 
42024220                if_exists, 
0 commit comments