hasTable method

  1. @override
Future<bool> hasTable(
  1. String table, {
  2. String? schema,
})
override

Determines if the given table exists.

Implementation

@override
Future<bool> hasTable(String table, {String? schema}) async {
  return snapshot.tables.any(
    (t) => _equalsOwner(t.schema, schema) && _equals(t.name, table),
  );
}