addIndex method
Future<void>
addIndex(
- String tableName,
- String indexName,
- List<
String> columns, { - ColumnIndex type = ColumnIndex.indexKey,
Implementation
Future<void> addIndex(
String tableName,
String indexName,
List<String> columns, {
ColumnIndex type = ColumnIndex.indexKey,
}) async {
final index = IndexBlueprint(name: indexName, columns: columns, type: type);
final statements = _requireAdapter.renderAddIndex(tableName, index);
await _executeStatements(statements);
}