dropTable<T> method

Future<void> dropTable<T>()

Drops the entity table T if it exists.

Implementation

Future<void> dropTable<T>() async {
  await (await db).transaction(
    (txn) => txn.execute('DROP TABLE IF EXISTS ${T.toString()}'),
  );
}