pub enum AlterTableOperation<'until_build, 'post_build> {
    RenameTo {
        name: String,
    },
    RenameColumnTo {
        column_name: String,
        new_column_name: String,
    },
    AddColumn {
        operation: CreateColumnImpl<'until_build, 'post_build>,
    },
    DropColumn {
        name: String,
    },
}
Expand description

Representation of operations to execute in the context of an ALTER TABLE statement.

Variants§

§

RenameTo

Fields

§name: String

New name of the table

Use this operation to rename a table

§

RenameColumnTo

Fields

§column_name: String

Current column name

§new_column_name: String

New column name

Use this operation to rename a column within a table

§

AddColumn

Fields

§operation: CreateColumnImpl<'until_build, 'post_build>

Operation to use for adding the column

Use this operation to add a column to an existing table.

§

DropColumn

Fields

§name: String

Name of the column to drop

Use this operation to drop an existing column.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.