dropTable<T> method

Future<void> dropTable<T>()

Drops the entity table T if it exists.

Implementation

Future<void> dropTable<T>() async {
  final String table = _tableFor<T>();
  _knownTables.remove(table);
  _scope?.createdTables.remove(table);
  await (await _executor()).execute(
    'DROP TABLE IF EXISTS ${quoteIdentifier(table)}',
  );
}