@@ -67,13 +67,13 @@ pub use self::ddl::{
6767 ColumnPolicyProperty , ConstraintCharacteristics , CreateConnector , CreateDomain ,
6868 CreateExtension , CreateFunction , CreateIndex , CreateOperator , CreateOperatorClass ,
6969 CreateOperatorFamily , CreateTable , CreateTrigger , CreateView , Deduplicate , DeferrableInitial ,
70- DropBehavior , DropExtension , DropFunction , DropOperator , DropOperatorSignature , DropTrigger ,
71- GeneratedAs , GeneratedExpressionMode , IdentityParameters , IdentityProperty ,
72- IdentityPropertyFormatKind , IdentityPropertyKind , IdentityPropertyOrder , IndexColumn ,
73- IndexOption , IndexType , KeyOrIndexDisplay , Msck , NullsDistinctOption , OperatorArgTypes ,
74- OperatorClassItem , OperatorPurpose , Owner , Partition , ProcedureParam , ReferentialAction ,
75- RenameTableNameKind , ReplicaIdentity , TagsColumnOption , TriggerObjectKind , Truncate ,
76- UserDefinedTypeCompositeAttributeDef , UserDefinedTypeInternalLength ,
70+ DropBehavior , DropExtension , DropFunction , DropOperator , DropOperatorFamily ,
71+ DropOperatorSignature , DropTrigger , GeneratedAs , GeneratedExpressionMode , IdentityParameters ,
72+ IdentityProperty , IdentityPropertyFormatKind , IdentityPropertyKind , IdentityPropertyOrder ,
73+ IndexColumn , IndexOption , IndexType , KeyOrIndexDisplay , Msck , NullsDistinctOption ,
74+ OperatorArgTypes , OperatorClassItem , OperatorPurpose , Owner , Partition , ProcedureParam ,
75+ ReferentialAction , RenameTableNameKind , ReplicaIdentity , TagsColumnOption , TriggerObjectKind ,
76+ Truncate , UserDefinedTypeCompositeAttributeDef , UserDefinedTypeInternalLength ,
7777 UserDefinedTypeRangeOption , UserDefinedTypeRepresentation , UserDefinedTypeSqlDefinitionOption ,
7878 UserDefinedTypeStorage , ViewColumnDef ,
7979} ;
@@ -3580,6 +3580,12 @@ pub enum Statement {
35803580 /// <https://www.postgresql.org/docs/current/sql-dropoperator.html>
35813581 DropOperator ( DropOperator ) ,
35823582 /// ```sql
3583+ /// DROP OPERATOR FAMILY [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]
3584+ /// ```
3585+ /// Note: this is a PostgreSQL-specific statement.
3586+ /// <https://www.postgresql.org/docs/current/sql-dropopfamily.html>
3587+ DropOperatorFamily ( DropOperatorFamily ) ,
3588+ /// ```sql
35833589 /// FETCH
35843590 /// ```
35853591 /// Retrieve rows from a query using a cursor
@@ -4844,6 +4850,9 @@ impl fmt::Display for Statement {
48444850 Statement :: CreateExtension ( create_extension) => write ! ( f, "{create_extension}" ) ,
48454851 Statement :: DropExtension ( drop_extension) => write ! ( f, "{drop_extension}" ) ,
48464852 Statement :: DropOperator ( drop_operator) => write ! ( f, "{drop_operator}" ) ,
4853+ Statement :: DropOperatorFamily ( drop_operator_family) => {
4854+ write ! ( f, "{drop_operator_family}" )
4855+ }
48474856 Statement :: CreateRole ( create_role) => write ! ( f, "{create_role}" ) ,
48484857 Statement :: CreateSecret {
48494858 or_replace,
0 commit comments