pub struct CreateIndexSpec<'a> {
pub unique: Uniqueness,
pub if_not_exists: IfNotExists,
pub database: Option<NameId>,
pub name: NameId,
pub table: NameId,
pub using: Option<NameId>,
pub columns: &'a [IndexedColumn],
pub settings: &'a [Vec<u8>],
pub filter: Option<ExprId>,
}Expand description
Everything a CREATE INDEX statement names.
The grammar’s own fields, gathered rather than passed as nine positional arguments of which two were adjacent booleans.
Fields§
§unique: UniquenessWhether the index refuses a repeated key.
if_not_exists: IfNotExistsWhat to do when the index is already there.
database: Option<NameId>The schema the index is created in, when one was written.
name: NameIdThe index’s name.
table: NameIdThe table it is over.
using: Option<NameId>The module named by USING, for the extension index forms.
columns: &'a [IndexedColumn]The indexed columns, in key order.
settings: &'a [Vec<u8>]The WITH settings, as written.
filter: Option<ExprId>The WHERE of a partial index, as an expression of the statement.
Auto Trait Implementations§
impl<'a> Freeze for CreateIndexSpec<'a>
impl<'a> RefUnwindSafe for CreateIndexSpec<'a>
impl<'a> Send for CreateIndexSpec<'a>
impl<'a> Sync for CreateIndexSpec<'a>
impl<'a> Unpin for CreateIndexSpec<'a>
impl<'a> UnsafeUnpin for CreateIndexSpec<'a>
impl<'a> UnwindSafe for CreateIndexSpec<'a>
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