@@ -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 ,
@@ -138,8 +140,9 @@ mod dml;
138140pub mod helpers;
139141pub mod table_constraints;
140142pub use table_constraints:: {
141- CheckConstraint , ConstraintUsingIndex , ForeignKeyConstraint , FullTextOrSpatialConstraint ,
142- IndexConstraint , PrimaryKeyConstraint , TableConstraint , UniqueConstraint ,
143+ CheckConstraint , ConstraintUsingIndex , ExcludeConstraint , ExcludeConstraintElement ,
144+ ExcludeConstraintOperator , ForeignKeyConstraint , FullTextOrSpatialConstraint , IndexConstraint ,
145+ PrimaryKeyConstraint , TableConstraint , UniqueConstraint ,
143146} ;
144147mod operator;
145148mod query;
@@ -3794,6 +3797,10 @@ pub enum Statement {
37943797 /// ```
37953798 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-createopclass.html)
37963799 CreateOperatorClass ( CreateOperatorClass ) ,
3800+ /// A `CREATE TEXT SEARCH` statement.
3801+ ///
3802+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-intro.html)
3803+ CreateTextSearch ( CreateTextSearch ) ,
37973804 /// ```sql
37983805 /// ALTER TABLE
37993806 /// ```
@@ -3858,6 +3865,10 @@ pub enum Statement {
38583865 /// ```
38593866 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-alteropclass.html)
38603867 AlterOperatorClass ( AlterOperatorClass ) ,
3868+ /// An `ALTER TEXT SEARCH` statement.
3869+ ///
3870+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-configuration.html)
3871+ AlterTextSearch ( AlterTextSearch ) ,
38613872 /// ```sql
38623873 /// ALTER ROLE
38633874 /// ```
@@ -5618,6 +5629,7 @@ impl fmt::Display for Statement {
56185629 create_operator_family. fmt ( f)
56195630 }
56205631 Statement :: CreateOperatorClass ( create_operator_class) => create_operator_class. fmt ( f) ,
5632+ Statement :: CreateTextSearch ( create_text_search) => create_text_search. fmt ( f) ,
56215633 Statement :: AlterTable ( alter_table) => write ! ( f, "{alter_table}" ) ,
56225634 Statement :: AlterIndex { name, operation } => {
56235635 write ! ( f, "ALTER INDEX {name} {operation}" )
@@ -5649,6 +5661,7 @@ impl fmt::Display for Statement {
56495661 Statement :: AlterOperatorClass ( alter_operator_class) => {
56505662 write ! ( f, "{alter_operator_class}" )
56515663 }
5664+ Statement :: AlterTextSearch ( alter_text_search) => write ! ( f, "{alter_text_search}" ) ,
56525665 Statement :: AlterRole { name, operation } => {
56535666 write ! ( f, "ALTER ROLE {name} {operation}" )
56545667 }
@@ -12309,6 +12322,12 @@ impl From<CreateOperatorClass> for Statement {
1230912322 }
1231012323}
1231112324
12325+ impl From < CreateTextSearch > for Statement {
12326+ fn from ( c : CreateTextSearch ) -> Self {
12327+ Self :: CreateTextSearch ( c)
12328+ }
12329+ }
12330+
1231212331impl From < AlterSchema > for Statement {
1231312332 fn from ( a : AlterSchema ) -> Self {
1231412333 Self :: AlterSchema ( a)
@@ -12351,6 +12370,12 @@ impl From<AlterOperatorClass> for Statement {
1235112370 }
1235212371}
1235312372
12373+ impl From < AlterTextSearch > for Statement {
12374+ fn from ( a : AlterTextSearch ) -> Self {
12375+ Self :: AlterTextSearch ( a)
12376+ }
12377+ }
12378+
1235412379impl From < Merge > for Statement {
1235512380 fn from ( m : Merge ) -> Self {
1235612381 Self :: Merge ( m)
0 commit comments