MoorIndex class

An sql index.

Indices can only be declared in moor files at the moment.

Inheritance
Available Extensions

Constructors

MoorIndex(String name, IndexDeclaration declaration, String createStmt, [MoorTable? table])
MoorIndex.fromMoor(CreateIndexStatement stmt, FoundFile file)
factory

Properties

createStmt String
The sql statement creating this index.
final
dbGetterName String
The getter in a generated database accessor referring to this model.
no setteroverride
declaration IndexDeclaration
Gets the declaration of this element, if set.
final
displayName String
A human readable name of this entity, like the table name.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
final
references Iterable<MoorSchemaEntity>
All entities that have to be created before this entity can be created.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
table MoorTable?
The table on which this index is created.
getter/setter pair

Methods

createSql(MoorOptions options) String
The CREATE INDEX statement creating this index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited