rawIndex method

IndexDefinition rawIndex(
  1. String expression, {
  2. String? name,
})

Implementation

IndexDefinition rawIndex(String expression, {String? name}) {
  final normalized = _normalizeIdentifierSegment(expression);
  final definition = IndexDefinition(
    name: name ?? '${table}_${normalized}_raw_index',
    type: IndexType.regular,
    columns: [expression],
    raw: true,
    driverOptions: const {},
  );
  _indexes.add(_IndexEntry(definition));
  return definition;
}