@@ -65,23 +65,25 @@ pub use self::ddl::{
6565 AlterOperatorClass , AlterOperatorClassOperation , AlterOperatorFamily ,
6666 AlterOperatorFamilyOperation , AlterOperatorOperation , AlterPolicy , AlterPolicyOperation ,
6767 AlterSchema , AlterSchemaOperation , AlterTable , AlterTableAlgorithm , AlterTableLock ,
68- AlterTableOperation , AlterTableType , AlterType , AlterTypeAddValue , AlterTypeAddValuePosition ,
68+ AlterTableOperation , AlterTableType , AlterTextSearch , AlterTextSearchDictionaryOption ,
69+ AlterTextSearchOperation , AlterType , AlterTypeAddValue , AlterTypeAddValuePosition ,
6970 AlterTypeOperation , AlterTypeRename , AlterTypeRenameValue , ClusteredBy , ColumnDef ,
7071 ColumnOption , ColumnOptionDef , ColumnOptions , ColumnPolicy , ColumnPolicyProperty ,
7172 ConstraintCharacteristics , CreateConnector , CreateDomain , CreateExtension , CreateFunction ,
7273 CreateIndex , CreateOperator , CreateOperatorClass , CreateOperatorFamily , CreatePolicy ,
73- CreatePolicyCommand , CreatePolicyType , CreateTable , CreateTrigger , CreateView , Deduplicate ,
74- DeferrableInitial , DistStyle , DropBehavior , DropExtension , DropFunction , DropOperator ,
75- DropOperatorClass , DropOperatorFamily , DropOperatorSignature , DropPolicy , DropTrigger ,
76- ForValues , FunctionReturnType , GeneratedAs , GeneratedExpressionMode , IdentityParameters ,
74+ CreatePolicyCommand , CreatePolicyType , CreateTable , CreateTextSearch , CreateTrigger ,
75+ CreateView , Deduplicate , DeferrableInitial , DistStyle , DropBehavior , DropExtension ,
76+ DropFunction , DropOperator , DropOperatorClass , DropOperatorFamily , DropOperatorSignature ,
77+ DropPolicy , DropTrigger , ForValues , FunctionReturnType , GeneratedAs ,
78+ GeneratedExpressionMode , IdentityParameters ,
7779 IdentityProperty , IdentityPropertyFormatKind , IdentityPropertyKind , IdentityPropertyOrder ,
7880 IndexColumn , IndexOption , IndexType , KeyOrIndexDisplay , Msck , NullsDistinctOption ,
7981 OperatorArgTypes , OperatorClassItem , OperatorFamilyDropItem , OperatorFamilyItem ,
8082 OperatorOption , OperatorPurpose , Owner , Partition , PartitionBoundValue , ProcedureParam ,
81- ReferentialAction , RenameTableNameKind , ReplicaIdentity , TagsColumnOption , TriggerObjectKind ,
82- Truncate , UserDefinedTypeCompositeAttributeDef , UserDefinedTypeInternalLength ,
83- UserDefinedTypeRangeOption , UserDefinedTypeRepresentation , UserDefinedTypeSqlDefinitionOption ,
84- UserDefinedTypeStorage , ViewColumnDef ,
83+ ReferentialAction , RenameTableNameKind , ReplicaIdentity , TagsColumnOption ,
84+ TextSearchObjectType , TriggerObjectKind , Truncate , UserDefinedTypeCompositeAttributeDef ,
85+ UserDefinedTypeInternalLength , UserDefinedTypeRangeOption , UserDefinedTypeRepresentation ,
86+ UserDefinedTypeSqlDefinitionOption , UserDefinedTypeStorage , ViewColumnDef ,
8587} ;
8688pub use self :: dml:: {
8789 Delete , Insert , Merge , MergeAction , MergeClause , MergeClauseKind , MergeInsertExpr ,
@@ -3720,6 +3722,11 @@ pub enum Statement {
37203722 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-createopclass.html)
37213723 CreateOperatorClass ( CreateOperatorClass ) ,
37223724 /// ```sql
3725+ /// CREATE TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3726+ /// ```
3727+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-intro.html)
3728+ CreateTextSearch ( CreateTextSearch ) ,
3729+ /// ```sql
37233730 /// ALTER TABLE
37243731 /// ```
37253732 AlterTable ( AlterTable ) ,
@@ -3779,6 +3786,11 @@ pub enum Statement {
37793786 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-alteropclass.html)
37803787 AlterOperatorClass ( AlterOperatorClass ) ,
37813788 /// ```sql
3789+ /// ALTER TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3790+ /// ```
3791+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-configuration.html)
3792+ AlterTextSearch ( AlterTextSearch ) ,
3793+ /// ```sql
37823794 /// ALTER ROLE
37833795 /// ```
37843796 AlterRole {
@@ -5484,6 +5496,7 @@ impl fmt::Display for Statement {
54845496 create_operator_family. fmt ( f)
54855497 }
54865498 Statement :: CreateOperatorClass ( create_operator_class) => create_operator_class. fmt ( f) ,
5499+ Statement :: CreateTextSearch ( create_text_search) => create_text_search. fmt ( f) ,
54875500 Statement :: AlterTable ( alter_table) => write ! ( f, "{alter_table}" ) ,
54885501 Statement :: AlterIndex { name, operation } => {
54895502 write ! ( f, "ALTER INDEX {name} {operation}" )
@@ -5514,6 +5527,7 @@ impl fmt::Display for Statement {
55145527 Statement :: AlterOperatorClass ( alter_operator_class) => {
55155528 write ! ( f, "{alter_operator_class}" )
55165529 }
5530+ Statement :: AlterTextSearch ( alter_text_search) => write ! ( f, "{alter_text_search}" ) ,
55175531 Statement :: AlterRole { name, operation } => {
55185532 write ! ( f, "ALTER ROLE {name} {operation}" )
55195533 }
@@ -12107,6 +12121,12 @@ impl From<CreateOperatorClass> for Statement {
1210712121 }
1210812122}
1210912123
12124+ impl From < CreateTextSearch > for Statement {
12125+ fn from ( c : CreateTextSearch ) -> Self {
12126+ Self :: CreateTextSearch ( c)
12127+ }
12128+ }
12129+
1211012130impl From < AlterSchema > for Statement {
1211112131 fn from ( a : AlterSchema ) -> Self {
1211212132 Self :: AlterSchema ( a)
@@ -12143,6 +12163,12 @@ impl From<AlterOperatorClass> for Statement {
1214312163 }
1214412164}
1214512165
12166+ impl From < AlterTextSearch > for Statement {
12167+ fn from ( a : AlterTextSearch ) -> Self {
12168+ Self :: AlterTextSearch ( a)
12169+ }
12170+ }
12171+
1214612172impl From < Merge > for Statement {
1214712173 fn from ( m : Merge ) -> Self {
1214812174 Self :: Merge ( m)
0 commit comments