clear method
void
clear()
Drops all rows from every table and re-seeds the counter, keeping the connection open. Backs AtPersistenceBundle.clear for cheap per-test isolation.
Implementation
void clear() {
runInTransaction(() {
_db.execute('DELETE FROM at_data;');
_db.execute('DELETE FROM commit_log;');
_db.execute('DELETE FROM notifications;');
_db.execute('DELETE FROM access_log;');
_db.execute(
"UPDATE counters SET value = 0 WHERE name = 'last_commit_id';");
});
}