@@ -65,21 +65,23 @@ 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 ,
68+ AlterTableLock , AlterTableOperation , AlterTableType , AlterTextSearch ,
69+ AlterTextSearchDictionaryOption , AlterTextSearchOperation , AlterType , AlterTypeAddValue ,
6970 AlterTypeAddValuePosition , AlterTypeOperation , AlterTypeRename , AlterTypeRenameValue ,
7071 ClusteredBy , ColumnDef , ColumnOption , ColumnOptionDef , ColumnOptions , ColumnPolicy ,
7172 ColumnPolicyProperty , ConstraintCharacteristics , CreateCollation , CreateCollationDefinition ,
7273 CreateConnector , 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 ,
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 ,
79+ IdentityProperty , IdentityPropertyFormatKind , IdentityPropertyKind , IdentityPropertyOrder ,
80+ IndexColumn , IndexOption , IndexType , KeyOrIndexDisplay , Msck , NullsDistinctOption ,
81+ OperatorArgTypes , OperatorClassItem , OperatorFamilyDropItem , OperatorFamilyItem ,
82+ OperatorOption , OperatorPurpose , Owner , Partition , PartitionBoundValue , ProcedureParam ,
83+ ReferentialAction , RenameTableNameKind , ReplicaIdentity , TagsColumnOption ,
84+ TextSearchObjectType , TriggerObjectKind , Truncate , UserDefinedTypeCompositeAttributeDef ,
8385 UserDefinedTypeInternalLength , UserDefinedTypeRangeOption , UserDefinedTypeRepresentation ,
8486 UserDefinedTypeSqlDefinitionOption , UserDefinedTypeStorage , ViewColumnDef , WithData ,
8587} ;
@@ -3756,6 +3758,11 @@ pub enum Statement {
37563758 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-createopclass.html)
37573759 CreateOperatorClass ( CreateOperatorClass ) ,
37583760 /// ```sql
3761+ /// CREATE TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3762+ /// ```
3763+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-intro.html)
3764+ CreateTextSearch ( CreateTextSearch ) ,
3765+ /// ```sql
37593766 /// ALTER TABLE
37603767 /// ```
37613768 AlterTable ( AlterTable ) ,
@@ -3820,6 +3827,11 @@ pub enum Statement {
38203827 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-alteropclass.html)
38213828 AlterOperatorClass ( AlterOperatorClass ) ,
38223829 /// ```sql
3830+ /// ALTER TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3831+ /// ```
3832+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-configuration.html)
3833+ AlterTextSearch ( AlterTextSearch ) ,
3834+ /// ```sql
38233835 /// ALTER ROLE
38243836 /// ```
38253837 AlterRole {
@@ -5543,6 +5555,7 @@ impl fmt::Display for Statement {
55435555 create_operator_family. fmt ( f)
55445556 }
55455557 Statement :: CreateOperatorClass ( create_operator_class) => create_operator_class. fmt ( f) ,
5558+ Statement :: CreateTextSearch ( create_text_search) => create_text_search. fmt ( f) ,
55465559 Statement :: AlterTable ( alter_table) => write ! ( f, "{alter_table}" ) ,
55475560 Statement :: AlterIndex { name, operation } => {
55485561 write ! ( f, "ALTER INDEX {name} {operation}" )
@@ -5574,6 +5587,7 @@ impl fmt::Display for Statement {
55745587 Statement :: AlterOperatorClass ( alter_operator_class) => {
55755588 write ! ( f, "{alter_operator_class}" )
55765589 }
5590+ Statement :: AlterTextSearch ( alter_text_search) => write ! ( f, "{alter_text_search}" ) ,
55775591 Statement :: AlterRole { name, operation } => {
55785592 write ! ( f, "ALTER ROLE {name} {operation}" )
55795593 }
@@ -12197,6 +12211,12 @@ impl From<CreateOperatorClass> for Statement {
1219712211 }
1219812212}
1219912213
12214+ impl From < CreateTextSearch > for Statement {
12215+ fn from ( c : CreateTextSearch ) -> Self {
12216+ Self :: CreateTextSearch ( c)
12217+ }
12218+ }
12219+
1220012220impl From < AlterSchema > for Statement {
1220112221 fn from ( a : AlterSchema ) -> Self {
1220212222 Self :: AlterSchema ( a)
@@ -12239,6 +12259,12 @@ impl From<AlterOperatorClass> for Statement {
1223912259 }
1224012260}
1224112261
12262+ impl From < AlterTextSearch > for Statement {
12263+ fn from ( a : AlterTextSearch ) -> Self {
12264+ Self :: AlterTextSearch ( a)
12265+ }
12266+ }
12267+
1224212268impl From < Merge > for Statement {
1224312269 fn from ( m : Merge ) -> Self {
1224412270 Self :: Merge ( m)
0 commit comments