Enum rorm_sql::create_index::CreateIndexImpl
source · 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§
source§impl<'until_build> CreateIndex<'until_build> for CreateIndexImpl<'until_build>
impl<'until_build> CreateIndex<'until_build> for CreateIndexImpl<'until_build>
source§fn if_not_exists(self) -> Self
fn if_not_exists(self) -> Self
Creates the index only if it doesn’t exist yet.
source§fn add_column(self, column: &'until_build str) -> Self
fn add_column(self, column: &'until_build str) -> Self
Adds a column to the index. Read more
source§fn set_condition(self, condition: String) -> Self
fn set_condition(self, condition: String) -> Self
Sets the condition to apply. This will build a partial index. Read more