pub enum CreateIndexImpl<'until_build> {
    Sqlite(CreateIndexData<'until_build>),
    MySQL(CreateIndexData<'until_build>),
    Postgres(CreateIndexData<'until_build>),
}
Expand description

Implementation of database specific implementations of the CreateIndex trait.

Should only be constructed via crate::DBImpl::create_index.

Variants§

§

Sqlite(CreateIndexData<'until_build>)

SQLite representation of the CREATE INDEX operation.

§

MySQL(CreateIndexData<'until_build>)

MySQL representation of the CREATE INDEX operation.

§

Postgres(CreateIndexData<'until_build>)

Postgres representation of the CREATE INDEX operation.

Trait Implementations§

Creates a unique index. Read more
Creates the index only if it doesn’t exist yet.
Adds a column to the index. Read more
Sets the condition to apply. This will build a partial index. Read more
This method is used to build the create index operation

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.