Struct rorm_sql::create_index::SQLCreateIndex
source · [−]pub struct SQLCreateIndex { /* private fields */ }
Expand description
Representation of a create index operation
Implementations
sourceimpl SQLCreateIndex
impl SQLCreateIndex
sourcepub fn unique(self) -> Self
pub fn unique(self) -> Self
Creates a unique index. Null values are considered different from all other null values.
sourcepub fn if_not_exists(self) -> Self
pub fn if_not_exists(self) -> Self
Creates the index only if it doesn’t exist yet.
sourcepub fn add_column(self, column: &str) -> Self
pub fn add_column(self, column: &str) -> Self
Adds a column to the index.
sourcepub fn set_condition(self, condition: &str) -> Self
pub fn set_condition(self, condition: &str) -> Self
Sets the condition to apply. This will build a partial index.
Auto Trait Implementations
impl RefUnwindSafe for SQLCreateIndex
impl Send for SQLCreateIndex
impl Sync for SQLCreateIndex
impl Unpin for SQLCreateIndex
impl UnwindSafe for SQLCreateIndex
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