pub enum CreateTableImpl<'until_build, 'post_build> {
    SQLite(CreateTableData<'until_build, 'post_build>),
    MySQL(CreateTableData<'until_build, 'post_build>),
    Postgres(CreateTableData<'until_build, 'post_build>),
}
Expand description

The implementation of the CreateTable trait for different database dialects.

This should only be constructed via crate::DBImpl::create_table.

Variants

SQLite(CreateTableData<'until_build, 'post_build>)

SQLite representation of the CREATE TABLE operation.

MySQL(CreateTableData<'until_build, 'post_build>)

MySQL representation of the CREATE TABLE operation.

Postgres(CreateTableData<'until_build, 'post_build>)

Postgres representation of the CREATE TABLE operation.

Trait Implementations

Add a column to the table. Read more
Sets the IF NOT EXISTS trait on the table Read more
This method is used to convert the current state for the given dialect in a list of tuples. 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.