pub struct CreateIndexClause {
pub name: Option<SchemaName>,
pub entity_type: SchemaEntityType,
pub labels: Vec<SmallName>,
pub properties: Vec<SmallName>,
pub if_not_exists: bool,
pub kind: IndexKind,
pub on_each: bool,
pub with_properties: Vec<SmallName>,
pub options: OptionsForm,
}Expand description
CREATE INDEX clause.
Fields§
§name: Option<SchemaName>§entity_type: SchemaEntityType§labels: Vec<SmallName>Node labels, or (for a relationship index) relationship types, the
index applies to. More than one entry only for the A|B disjunctive
form (CIP-38/CIP-235); empty for a label-less/type-less LOOKUP index
(FOR (n) / FOR ()-[r]-()).
properties: Vec<SmallName>§if_not_exists: bool§kind: IndexKind§on_each: boolTrue when the property list was written as ON EACH [...] (CIP-38
FULLTEXT) rather than a plain ON (...) / paren-less ON ... list.
with_properties: Vec<SmallName>WITH [var.prop1, var.prop2, ...] (CIP-235): additional properties
available for single-stage filtering on a VECTOR index, following
the ON vector property. Always empty for every other index kind
and for a vector index that doesn’t use the clause.
options: OptionsFormThe OPTIONS tail: absent, a literal map, or a whole-map parameter
(CIP-116 CR[4]) resolved at execution time.
Trait Implementations§
Source§impl Clone for CreateIndexClause
impl Clone for CreateIndexClause
Source§impl Debug for CreateIndexClause
impl Debug for CreateIndexClause
Source§impl PartialEq for CreateIndexClause
impl PartialEq for CreateIndexClause
impl StructuralPartialEq for CreateIndexClause
Auto Trait Implementations§
impl Forget for CreateIndexClause
impl Freeze for CreateIndexClause
impl Move for CreateIndexClause
impl RefUnwindSafe for CreateIndexClause
impl Send for CreateIndexClause
impl Sync for CreateIndexClause
impl Unpin for CreateIndexClause
impl UnsafeUnpin for CreateIndexClause
impl UnwindSafe for CreateIndexClause
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