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>)
Available on crate feature
sqlite
only.SQLite representation of the CREATE INDEX operation.
MySQL(CreateIndexData<'until_build>)
Available on crate feature
mysql
only.MySQL representation of the CREATE INDEX operation.
Postgres(CreateIndexData<'until_build>)
Available on crate feature
postgres
only.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
Auto Trait Implementations§
impl<'until_build> Freeze for CreateIndexImpl<'until_build>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more