IndexInfo class

Index information for DDL generation.

This is a simple data class that holds the information needed to generate DDL statements for index operations.

Annotations
  • @immutable

Constructors

IndexInfo({required String name, required String tableName, required List<String> columns, bool isUnique = false, String? where})
Index information for DDL generation.
const
IndexInfo.fromMap(Map<String, dynamic> map)
Creates an IndexInfo from a map representation.
factory

Properties

columns → List<String>
The column names that make up the index.
final
hashCode → int
The hash code for this object.
no setteroverride
isUnique → bool
Whether this index enforces uniqueness.
final
name → String
The index name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tableName → String
The table this index belongs to.
final
where → String?
Optional partial-index predicate (raw, dialect-owned SQL), rendered as WHERE <where> by dialects that support partial indexes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts this index info to a map representation.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override