@@ -64,23 +64,25 @@ pub use self::ddl::{
6464 AlterOperatorClass , AlterOperatorClassOperation , AlterOperatorFamily ,
6565 AlterOperatorFamilyOperation , AlterOperatorOperation , AlterPolicy , AlterPolicyOperation ,
6666 AlterSchema , AlterSchemaOperation , AlterTable , AlterTableAlgorithm , AlterTableLock ,
67- AlterTableOperation , AlterTableType , AlterType , AlterTypeAddValue , AlterTypeAddValuePosition ,
67+ AlterTableOperation , AlterTableType , AlterTextSearch , AlterTextSearchDictionaryOption ,
68+ AlterTextSearchOperation , AlterType , AlterTypeAddValue , AlterTypeAddValuePosition ,
6869 AlterTypeOperation , AlterTypeRename , AlterTypeRenameValue , ClusteredBy , ColumnDef ,
6970 ColumnOption , ColumnOptionDef , ColumnOptions , ColumnPolicy , ColumnPolicyProperty ,
7071 ConstraintCharacteristics , CreateConnector , CreateDomain , CreateExtension , CreateFunction ,
7172 CreateIndex , CreateOperator , CreateOperatorClass , CreateOperatorFamily , CreatePolicy ,
72- CreatePolicyCommand , CreatePolicyType , CreateTable , CreateTrigger , CreateView , Deduplicate ,
73- DeferrableInitial , DistStyle , DropBehavior , DropExtension , DropFunction , DropOperator ,
74- DropOperatorClass , DropOperatorFamily , DropOperatorSignature , DropPolicy , DropTrigger ,
75- ForValues , FunctionReturnType , GeneratedAs , GeneratedExpressionMode , IdentityParameters ,
73+ CreatePolicyCommand , CreatePolicyType , CreateTable , CreateTextSearch , CreateTrigger ,
74+ CreateView , Deduplicate , DeferrableInitial , DistStyle , DropBehavior , DropExtension ,
75+ DropFunction , DropOperator , DropOperatorClass , DropOperatorFamily , DropOperatorSignature ,
76+ DropPolicy , DropTrigger , ForValues , FunctionReturnType , GeneratedAs ,
77+ GeneratedExpressionMode , IdentityParameters ,
7678 IdentityProperty , IdentityPropertyFormatKind , IdentityPropertyKind , IdentityPropertyOrder ,
7779 IndexColumn , IndexOption , IndexType , KeyOrIndexDisplay , Msck , NullsDistinctOption ,
7880 OperatorArgTypes , OperatorClassItem , OperatorFamilyDropItem , OperatorFamilyItem ,
7981 OperatorOption , OperatorPurpose , Owner , Partition , PartitionBoundValue , ProcedureParam ,
80- ReferentialAction , RenameTableNameKind , ReplicaIdentity , TagsColumnOption , TriggerObjectKind ,
81- Truncate , UserDefinedTypeCompositeAttributeDef , UserDefinedTypeInternalLength ,
82- UserDefinedTypeRangeOption , UserDefinedTypeRepresentation , UserDefinedTypeSqlDefinitionOption ,
83- UserDefinedTypeStorage , ViewColumnDef ,
82+ ReferentialAction , RenameTableNameKind , ReplicaIdentity , TagsColumnOption ,
83+ TextSearchObjectType , TriggerObjectKind , Truncate , UserDefinedTypeCompositeAttributeDef ,
84+ UserDefinedTypeInternalLength , UserDefinedTypeRangeOption , UserDefinedTypeRepresentation ,
85+ UserDefinedTypeSqlDefinitionOption , UserDefinedTypeStorage , ViewColumnDef ,
8486} ;
8587pub use self :: dml:: {
8688 Delete , Insert , Merge , MergeAction , MergeClause , MergeClauseKind , MergeInsertExpr ,
@@ -3719,6 +3721,11 @@ pub enum Statement {
37193721 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-createopclass.html)
37203722 CreateOperatorClass ( CreateOperatorClass ) ,
37213723 /// ```sql
3724+ /// CREATE TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3725+ /// ```
3726+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-intro.html)
3727+ CreateTextSearch ( CreateTextSearch ) ,
3728+ /// ```sql
37223729 /// ALTER TABLE
37233730 /// ```
37243731 AlterTable ( AlterTable ) ,
@@ -3771,6 +3778,11 @@ pub enum Statement {
37713778 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-alteropclass.html)
37723779 AlterOperatorClass ( AlterOperatorClass ) ,
37733780 /// ```sql
3781+ /// ALTER TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3782+ /// ```
3783+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-configuration.html)
3784+ AlterTextSearch ( AlterTextSearch ) ,
3785+ /// ```sql
37743786 /// ALTER ROLE
37753787 /// ```
37763788 AlterRole {
@@ -5467,6 +5479,7 @@ impl fmt::Display for Statement {
54675479 create_operator_family. fmt ( f)
54685480 }
54695481 Statement :: CreateOperatorClass ( create_operator_class) => create_operator_class. fmt ( f) ,
5482+ Statement :: CreateTextSearch ( create_text_search) => create_text_search. fmt ( f) ,
54705483 Statement :: AlterTable ( alter_table) => write ! ( f, "{alter_table}" ) ,
54715484 Statement :: AlterIndex { name, operation } => {
54725485 write ! ( f, "ALTER INDEX {name} {operation}" )
@@ -5496,6 +5509,7 @@ impl fmt::Display for Statement {
54965509 Statement :: AlterOperatorClass ( alter_operator_class) => {
54975510 write ! ( f, "{alter_operator_class}" )
54985511 }
5512+ Statement :: AlterTextSearch ( alter_text_search) => write ! ( f, "{alter_text_search}" ) ,
54995513 Statement :: AlterRole { name, operation } => {
55005514 write ! ( f, "ALTER ROLE {name} {operation}" )
55015515 }
@@ -12074,6 +12088,12 @@ impl From<CreateOperatorClass> for Statement {
1207412088 }
1207512089}
1207612090
12091+ impl From < CreateTextSearch > for Statement {
12092+ fn from ( c : CreateTextSearch ) -> Self {
12093+ Self :: CreateTextSearch ( c)
12094+ }
12095+ }
12096+
1207712097impl From < AlterSchema > for Statement {
1207812098 fn from ( a : AlterSchema ) -> Self {
1207912099 Self :: AlterSchema ( a)
@@ -12104,6 +12124,12 @@ impl From<AlterOperatorClass> for Statement {
1210412124 }
1210512125}
1210612126
12127+ impl From < AlterTextSearch > for Statement {
12128+ fn from ( a : AlterTextSearch ) -> Self {
12129+ Self :: AlterTextSearch ( a)
12130+ }
12131+ }
12132+
1210712133impl From < Merge > for Statement {
1210812134 fn from ( m : Merge ) -> Self {
1210912135 Self :: Merge ( m)
0 commit comments