hasIndex abstract method

Future<bool> hasIndex(
  1. String table,
  2. String index, {
  3. String? schema,
  4. String? type,
})

Determines if the given table has a specific index. Optionally check by index type ('primary', 'unique', or specific driver type).

Implementation

Future<bool> hasIndex(
  String table,
  String index, {
  String? schema,
  String? type,
});