@@ -59,8 +59,8 @@ pub use self::dcl::{
5959} ;
6060pub use self :: ddl:: {
6161 AlterColumnOperation , AlterConnectorOwner , AlterIndexOperation , AlterPolicyOperation ,
62- AlterSchemaOperation , AlterTableAlgorithm , AlterTableLock , AlterTableOperation , AlterType ,
63- AlterTypeAddValue , AlterTypeAddValuePosition , AlterTypeOperation , AlterTypeRename ,
62+ AlterSchema , AlterSchemaOperation , AlterTableAlgorithm , AlterTableLock , AlterTableOperation ,
63+ AlterType , AlterTypeAddValue , AlterTypeAddValuePosition , AlterTypeOperation , AlterTypeRename ,
6464 AlterTypeRenameValue , ClusteredBy , ColumnDef , ColumnOption , ColumnOptionDef , ColumnOptions ,
6565 ColumnPolicy , ColumnPolicyProperty , ConstraintCharacteristics , CreateConnector , CreateDomain ,
6666 CreateFunction , Deduplicate , DeferrableInitial , DropBehavior , GeneratedAs ,
@@ -3384,13 +3384,7 @@ pub enum Statement {
33843384 /// ALTER SCHEMA
33853385 /// ```
33863386 /// See [BigQuery](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#alter_schema_collate_statement)
3387- AlterSchema {
3388- /// Schema name
3389- #[ cfg_attr( feature = "visitor" , visit( with = "visit_relation" ) ) ]
3390- name : ObjectName ,
3391- if_exists : bool ,
3392- operations : Vec < AlterSchemaOperation > ,
3393- } ,
3387+ AlterSchema ( AlterSchema ) ,
33943388 /// ```sql
33953389 /// ALTER INDEX
33963390 /// ```
@@ -6220,15 +6214,7 @@ impl fmt::Display for Statement {
62206214 Statement :: Remove ( command) => write ! ( f, "REMOVE {command}" ) ,
62216215 Statement :: ExportData ( e) => write ! ( f, "{e}" ) ,
62226216 Statement :: CreateUser ( s) => write ! ( f, "{s}" ) ,
6223- Statement :: AlterSchema {
6224- name, operations, ..
6225- } => {
6226- write ! ( f, "ALTER SCHEMA {name}" ) ?;
6227- for operation in operations {
6228- write ! ( f, " {operation}" ) ?;
6229- }
6230- Ok ( ( ) )
6231- }
6217+ Statement :: AlterSchema ( s) => write ! ( f, "{s}" ) ,
62326218 }
62336219 }
62346220}
0 commit comments