@@ -64,20 +64,22 @@ 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 , DropBehavior , DropExtension , DropFunction , DropOperator , DropOperatorClass ,
74- DropOperatorFamily , DropOperatorSignature , DropPolicy , DropTrigger , ForValues , GeneratedAs ,
75- GeneratedExpressionMode , IdentityParameters , IdentityProperty , IdentityPropertyFormatKind ,
76- IdentityPropertyKind , IdentityPropertyOrder , IndexColumn , IndexOption , IndexType ,
77- KeyOrIndexDisplay , Msck , NullsDistinctOption , OperatorArgTypes , OperatorClassItem ,
78- OperatorFamilyDropItem , OperatorFamilyItem , OperatorOption , OperatorPurpose , Owner , Partition ,
79- PartitionBoundValue , ProcedureParam , ReferentialAction , RenameTableNameKind , ReplicaIdentity ,
80- TagsColumnOption , TriggerObjectKind , Truncate , UserDefinedTypeCompositeAttributeDef ,
73+ CreatePolicyCommand , CreatePolicyType , CreateTable , CreateTextSearch , CreateTrigger ,
74+ CreateView , Deduplicate , DeferrableInitial , DropBehavior , DropExtension , DropFunction ,
75+ DropOperator , DropOperatorClass , DropOperatorFamily , DropOperatorSignature , DropPolicy ,
76+ DropTrigger , ForValues , GeneratedAs , GeneratedExpressionMode , IdentityParameters ,
77+ IdentityProperty , IdentityPropertyFormatKind , IdentityPropertyKind , IdentityPropertyOrder ,
78+ IndexColumn , IndexOption , IndexType , KeyOrIndexDisplay , Msck , NullsDistinctOption ,
79+ OperatorArgTypes , OperatorClassItem , OperatorFamilyDropItem , OperatorFamilyItem ,
80+ OperatorOption , OperatorPurpose , Owner , Partition , PartitionBoundValue , ProcedureParam ,
81+ ReferentialAction , RenameTableNameKind , ReplicaIdentity , TagsColumnOption ,
82+ TextSearchObjectType , TriggerObjectKind , Truncate , UserDefinedTypeCompositeAttributeDef ,
8183 UserDefinedTypeInternalLength , UserDefinedTypeRangeOption , UserDefinedTypeRepresentation ,
8284 UserDefinedTypeSqlDefinitionOption , UserDefinedTypeStorage , ViewColumnDef ,
8385} ;
@@ -3707,6 +3709,11 @@ pub enum Statement {
37073709 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-createopclass.html)
37083710 CreateOperatorClass ( CreateOperatorClass ) ,
37093711 /// ```sql
3712+ /// CREATE TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3713+ /// ```
3714+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-intro.html)
3715+ CreateTextSearch ( CreateTextSearch ) ,
3716+ /// ```sql
37103717 /// ALTER TABLE
37113718 /// ```
37123719 AlterTable ( AlterTable ) ,
@@ -3759,6 +3766,11 @@ pub enum Statement {
37593766 /// See [PostgreSQL](https://www.postgresql.org/docs/current/sql-alteropclass.html)
37603767 AlterOperatorClass ( AlterOperatorClass ) ,
37613768 /// ```sql
3769+ /// ALTER TEXT SEARCH { DICTIONARY | CONFIGURATION | TEMPLATE | PARSER }
3770+ /// ```
3771+ /// See [PostgreSQL](https://www.postgresql.org/docs/current/textsearch-configuration.html)
3772+ AlterTextSearch ( AlterTextSearch ) ,
3773+ /// ```sql
37623774 /// ALTER ROLE
37633775 /// ```
37643776 AlterRole {
@@ -5443,6 +5455,7 @@ impl fmt::Display for Statement {
54435455 create_operator_family. fmt ( f)
54445456 }
54455457 Statement :: CreateOperatorClass ( create_operator_class) => create_operator_class. fmt ( f) ,
5458+ Statement :: CreateTextSearch ( create_text_search) => create_text_search. fmt ( f) ,
54465459 Statement :: AlterTable ( alter_table) => write ! ( f, "{alter_table}" ) ,
54475460 Statement :: AlterIndex { name, operation } => {
54485461 write ! ( f, "ALTER INDEX {name} {operation}" )
@@ -5472,6 +5485,7 @@ impl fmt::Display for Statement {
54725485 Statement :: AlterOperatorClass ( alter_operator_class) => {
54735486 write ! ( f, "{alter_operator_class}" )
54745487 }
5488+ Statement :: AlterTextSearch ( alter_text_search) => write ! ( f, "{alter_text_search}" ) ,
54755489 Statement :: AlterRole { name, operation } => {
54765490 write ! ( f, "ALTER ROLE {name} {operation}" )
54775491 }
@@ -11912,6 +11926,12 @@ impl From<CreateOperatorClass> for Statement {
1191211926 }
1191311927}
1191411928
11929+ impl From < CreateTextSearch > for Statement {
11930+ fn from ( c : CreateTextSearch ) -> Self {
11931+ Self :: CreateTextSearch ( c)
11932+ }
11933+ }
11934+
1191511935impl From < AlterSchema > for Statement {
1191611936 fn from ( a : AlterSchema ) -> Self {
1191711937 Self :: AlterSchema ( a)
@@ -11942,6 +11962,12 @@ impl From<AlterOperatorClass> for Statement {
1194211962 }
1194311963}
1194411964
11965+ impl From < AlterTextSearch > for Statement {
11966+ fn from ( a : AlterTextSearch ) -> Self {
11967+ Self :: AlterTextSearch ( a)
11968+ }
11969+ }
11970+
1194511971impl From < Merge > for Statement {
1194611972 fn from ( m : Merge ) -> Self {
1194711973 Self :: Merge ( m)
0 commit comments