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
sourceimpl<'until_build> CreateIndex<'until_build> for CreateIndexImpl<'until_build>
impl<'until_build> CreateIndex<'until_build> for CreateIndexImpl<'until_build>
sourcefn if_not_exists(self) -> Self
fn if_not_exists(self) -> Self
Creates the index only if it doesn’t exist yet. Read more
sourcefn 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
sourcefn 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
Auto Trait Implementations
impl<'until_build> RefUnwindSafe for CreateIndexImpl<'until_build>
impl<'until_build> Send for CreateIndexImpl<'until_build>
impl<'until_build> Sync for CreateIndexImpl<'until_build>
impl<'until_build> Unpin for CreateIndexImpl<'until_build>
impl<'until_build> UnwindSafe for CreateIndexImpl<'until_build>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more