TableIndex constructor

const TableIndex({
  1. required String name,
  2. required Set<Symbol> columns,
  3. bool unique = false,
})

An annotation for Dart-defined drift tables telling drift to add an SQL index to the table.

See the class documentation at TableIndex for an example.

Implementation

const TableIndex({
  required this.name,
  required this.columns,
  this.unique = false,
});