listIndexes method

  1. @override
Future<List<SchemaIndex>> listIndexes(
  1. String table, {
  2. String? schema,
})
override

Lists indexes for table within an optional schema.

Implementation

@override
Future<List<SchemaIndex>> listIndexes(String table, {String? schema}) async =>
    snapshot.indexes
        .where(
          (index) =>
              _equals(index.tableName, table) &&
              (schema == null || _equals(index.schema, schema)),
        )
        .toList(growable: false);