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 unique(self) -> CreateIndexImpl<'until_build>
fn unique(self) -> CreateIndexImpl<'until_build>
Creates a unique index. Read more
Source§fn if_not_exists(self) -> CreateIndexImpl<'until_build>
fn if_not_exists(self) -> CreateIndexImpl<'until_build>
Creates the index only if it doesn’t exist yet.
Source§fn add_column(self, column: &'until_build str) -> CreateIndexImpl<'until_build>
fn add_column(self, column: &'until_build str) -> CreateIndexImpl<'until_build>
Adds a column to the index. Read more
Source§fn set_condition(self, condition: String) -> CreateIndexImpl<'until_build>
fn set_condition(self, condition: String) -> CreateIndexImpl<'until_build>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more