data Rotor::IndexDef(table: String, columns: Array[String], name: String, unique: Bool, where: String?, concurrently: Bool)

An index: its table, columns, name, whether it is unique, its condition (SQL, for a partial index), and whether it is built CONCURRENTLY.

/home/runner/work/rotor/rotor/src/migration.qz:25

Methods

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

/home/runner/work/rotor/rotor/src/migration.qz:25

def with(*, table: String = …, columns: Array[String] = …, name: String = …, unique: Bool = …, where: String? = …, concurrently: Bool = …) -> Rotor::IndexDef

A copy with the fields given replaced.

/home/runner/work/rotor/rotor/src/migration.qz:25

def table -> String

/home/runner/work/rotor/rotor/src/migration.qz:25

def columns -> Array[String]

/home/runner/work/rotor/rotor/src/migration.qz:25

def name -> String

/home/runner/work/rotor/rotor/src/migration.qz:25

def unique -> Bool

/home/runner/work/rotor/rotor/src/migration.qz:25

def where -> String?

/home/runner/work/rotor/rotor/src/migration.qz:25

def concurrently -> Bool

/home/runner/work/rotor/rotor/src/migration.qz:25