pub struct CreateIndexStmt {
pub index_name: String,
pub table_name: String,
pub columns: Vec<String>,
pub key_exprs: Vec<Option<(Expr, String)>>,
pub unique: bool,
pub if_not_exists: bool,
pub predicate_sql: Option<String>,
pub predicate_expr: Option<Expr>,
pub collations: Vec<Collation>,
pub kind: IndexKind,
pub ann_filter_cols: Vec<String>,
pub concurrently: bool,
}Fields§
§index_name: String§table_name: String§columns: Vec<String>Per-key column name for IndexColSpec::Column entries; ignored for Expr entries
(those resolve through key_exprs[i]).
key_exprs: Vec<Option<(Expr, String)>>Parallel to columns: None means the key is a column reference, Some((expr, sql))
means the key is an expression. Empty Vec = all-column index.
unique: bool§if_not_exists: bool§predicate_sql: Option<String>§predicate_expr: Option<Expr>§collations: Vec<Collation>§kind: IndexKind§ann_filter_cols: Vec<String>ANN-only: filter-column names from WITH (filters = '...'), resolved to
schema column indices in build_index_def_for_create. Empty otherwise.
concurrently: boolTrait Implementations§
Source§impl Clone for CreateIndexStmt
impl Clone for CreateIndexStmt
Source§fn clone(&self) -> CreateIndexStmt
fn clone(&self) -> CreateIndexStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateIndexStmt
impl RefUnwindSafe for CreateIndexStmt
impl Send for CreateIndexStmt
impl Sync for CreateIndexStmt
impl Unpin for CreateIndexStmt
impl UnsafeUnpin for CreateIndexStmt
impl UnwindSafe for CreateIndexStmt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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