@@ -65,23 +65,25 @@ pub use self::ddl::{
6565 AlterIndexOperation , AlterOperator , AlterOperatorClass , AlterOperatorClassOperation ,
6666 AlterOperatorFamily , AlterOperatorFamilyOperation , AlterOperatorOperation , AlterPolicy ,
6767 AlterPolicyOperation , AlterSchema , AlterSchemaOperation , AlterTable , AlterTableAlgorithm ,
68- AlterTableLock , AlterTableOperation , AlterTableType , AlterType , AlterTypeAddValue ,
69- AlterTypeAddValuePosition , AlterTypeOperation , AlterTypeRename , AlterTypeRenameValue ,
70- ClusteredBy , ColumnDef , ColumnOption , ColumnOptionDef , ColumnOptions , ColumnPolicy ,
71- ColumnPolicyProperty , ConstraintCharacteristics , CreateCollation , CreateCollationDefinition ,
72- CreateConnector , CreateDomain , CreateExtension , CreateFunction , CreateIndex , CreateOperator ,
68+ AlterTableLock , AlterTableOperation , AlterTableType , AlterTextSearch , AlterTextSearchOperation ,
69+ AlterTextSearchOption , AlterType , AlterTypeAddValue , AlterTypeAddValuePosition ,
70+ AlterTypeOperation , AlterTypeRename , AlterTypeRenameValue , ClusteredBy , ColumnDef ,
71+ ColumnOption , ColumnOptionDef , ColumnOptions , ColumnPolicy , ColumnPolicyProperty ,
72+ ConstraintCharacteristics , CreateCollation , CreateCollationDefinition , CreateConnector ,
73+ CreateDomain , CreateExtension , CreateFunction , CreateIndex , CreateOperator ,
7374 CreateOperatorClass , CreateOperatorFamily , CreatePolicy , CreatePolicyCommand , CreatePolicyType ,
74- CreateTable , CreateTrigger , CreateView , Deduplicate , DeferrableInitial , DistStyle ,
75- DropBehavior , DropExtension , DropFunction , DropOperator , DropOperatorClass , DropOperatorFamily ,
76- DropOperatorSignature , DropPolicy , DropTrigger , ForValues , FunctionReturnType , GeneratedAs ,
77- GeneratedExpressionMode , IdentityParameters , IdentityProperty , IdentityPropertyFormatKind ,
78- IdentityPropertyKind , IdentityPropertyOrder , IndexColumn , IndexOption , IndexType ,
79- KeyOrIndexDisplay , Msck , NullsDistinctOption , OperatorArgTypes , OperatorClassItem ,
80- OperatorFamilyDropItem , OperatorFamilyItem , OperatorOption , OperatorPurpose , Owner , Partition ,
81- PartitionBoundValue , ProcedureParam , ReferentialAction , RenameTableNameKind , ReplicaIdentity ,
82- TagsColumnOption , TriggerObjectKind , Truncate , UserDefinedTypeCompositeAttributeDef ,
83- UserDefinedTypeInternalLength , UserDefinedTypeRangeOption , UserDefinedTypeRepresentation ,
84- UserDefinedTypeSqlDefinitionOption , UserDefinedTypeStorage , ViewColumnDef , WithData ,
75+ CreateTable , CreateTextSearch , CreateTrigger , CreateView , Deduplicate , DeferrableInitial ,
76+ DistStyle , DropBehavior , DropExtension , DropFunction , DropOperator , DropOperatorClass ,
77+ DropOperatorFamily , DropOperatorSignature , DropPolicy , DropTrigger , ForValues ,
78+ FunctionReturnType , GeneratedAs , GeneratedExpressionMode , IdentityParameters , IdentityProperty ,
79+ IdentityPropertyFormatKind , IdentityPropertyKind , IdentityPropertyOrder , IndexColumn ,
80+ IndexOption , IndexType , KeyOrIndexDisplay , Msck , NullsDistinctOption , OperatorArgTypes ,
81+ OperatorClassItem , OperatorFamilyDropItem , OperatorFamilyItem , OperatorOption , OperatorPurpose ,
82+ Owner , Partition , PartitionBoundValue , ProcedureParam , ReferentialAction , RenameTableNameKind ,
83+ ReplicaIdentity , TagsColumnOption , TextSearchObjectType , TriggerObjectKind , Truncate ,
84+ UserDefinedTypeCompositeAttributeDef , UserDefinedTypeInternalLength ,
85+ UserDefinedTypeRangeOption , UserDefinedTypeRepresentation , UserDefinedTypeSqlDefinitionOption ,
86+ UserDefinedTypeStorage , ViewColumnDef , WithData ,
8587} ;
8688pub use self :: dml:: {
8789 Delete , Insert , Merge , MergeAction , MergeClause , MergeClauseKind , MergeInsertExpr ,
@@ -3754,6 +3756,10 @@ pub enum Statement {
37543756 /// ```
37553757 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-createopclass.html)
37563758 CreateOperatorClass ( CreateOperatorClass ) ,
3759+ /// A `CREATE TEXT SEARCH` statement.
3760+ ///
3761+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-intro.html)
3762+ CreateTextSearch ( CreateTextSearch ) ,
37573763 /// ```sql
37583764 /// ALTER TABLE
37593765 /// ```
@@ -3818,6 +3824,10 @@ pub enum Statement {
38183824 /// ```
38193825 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-alteropclass.html)
38203826 AlterOperatorClass ( AlterOperatorClass ) ,
3827+ /// An `ALTER TEXT SEARCH` statement.
3828+ ///
3829+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-configuration.html)
3830+ AlterTextSearch ( AlterTextSearch ) ,
38213831 /// ```sql
38223832 /// ALTER ROLE
38233833 /// ```
@@ -5578,6 +5588,7 @@ impl fmt::Display for Statement {
55785588 create_operator_family. fmt ( f)
55795589 }
55805590 Statement :: CreateOperatorClass ( create_operator_class) => create_operator_class. fmt ( f) ,
5591+ Statement :: CreateTextSearch ( create_text_search) => create_text_search. fmt ( f) ,
55815592 Statement :: AlterTable ( alter_table) => write ! ( f, "{alter_table}" ) ,
55825593 Statement :: AlterIndex { name, operation } => {
55835594 write ! ( f, "ALTER INDEX {name} {operation}" )
@@ -5609,6 +5620,7 @@ impl fmt::Display for Statement {
56095620 Statement :: AlterOperatorClass ( alter_operator_class) => {
56105621 write ! ( f, "{alter_operator_class}" )
56115622 }
5623+ Statement :: AlterTextSearch ( alter_text_search) => write ! ( f, "{alter_text_search}" ) ,
56125624 Statement :: AlterRole { name, operation } => {
56135625 write ! ( f, "ALTER ROLE {name} {operation}" )
56145626 }
@@ -12269,6 +12281,12 @@ impl From<CreateOperatorClass> for Statement {
1226912281 }
1227012282}
1227112283
12284+ impl From < CreateTextSearch > for Statement {
12285+ fn from ( c : CreateTextSearch ) -> Self {
12286+ Self :: CreateTextSearch ( c)
12287+ }
12288+ }
12289+
1227212290impl From < AlterSchema > for Statement {
1227312291 fn from ( a : AlterSchema ) -> Self {
1227412292 Self :: AlterSchema ( a)
@@ -12311,6 +12329,12 @@ impl From<AlterOperatorClass> for Statement {
1231112329 }
1231212330}
1231312331
12332+ impl From < AlterTextSearch > for Statement {
12333+ fn from ( a : AlterTextSearch ) -> Self {
12334+ Self :: AlterTextSearch ( a)
12335+ }
12336+ }
12337+
1231412338impl From < Merge > for Statement {
1231512339 fn from ( m : Merge ) -> Self {
1231612340 Self :: Merge ( m)
0 commit comments