pub struct CreateIndexStatement {
pub token: Token,
pub index_name: Identifier,
pub table_name: Identifier,
pub columns: Vec<Identifier>,
pub is_unique: bool,
pub if_not_exists: bool,
pub index_method: Option<IndexMethod>,
pub options: Vec<(String, Expression)>,
pub where_clause: Option<Box<Expression>>,
pub operator_class: Option<ObjectName>,
}Expand description
CREATE INDEX statement
Fields§
§token: Token§index_name: Identifier§table_name: Identifier§columns: Vec<Identifier>§is_unique: bool§if_not_exists: bool§index_method: Option<IndexMethod>Optional index type from USING clause (None = auto-select based on column type)
options: Vec<(String, Expression)>Optional WITH clause for index parameters (e.g., HNSW m, ef_construction, ef_search, metric)
where_clause: Option<Box<Expression>>Optional partial-index predicate from WHERE clause
operator_class: Option<ObjectName>PostgreSQL-style operator class following the sole key column.
Trait Implementations§
Source§impl Clone for CreateIndexStatement
impl Clone for CreateIndexStatement
Source§fn clone(&self) -> CreateIndexStatement
fn clone(&self) -> CreateIndexStatement
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 moreSource§impl Debug for CreateIndexStatement
impl Debug for CreateIndexStatement
Source§impl Display for CreateIndexStatement
impl Display for CreateIndexStatement
Source§impl PartialEq for CreateIndexStatement
impl PartialEq for CreateIndexStatement
impl StructuralPartialEq for CreateIndexStatement
Auto Trait Implementations§
impl Freeze for CreateIndexStatement
impl RefUnwindSafe for CreateIndexStatement
impl Send for CreateIndexStatement
impl Sync for CreateIndexStatement
impl Unpin for CreateIndexStatement
impl UnsafeUnpin for CreateIndexStatement
impl UnwindSafe for CreateIndexStatement
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