clearAll method

  1. @override
Future<void> clearAll(
  1. List<String> tables
)
override

Wipe all data in the specified tables. Used for secure logout (Category 1: Cross-User Isolation).

Implementation

@override
Future<void> clearAll(List<String> tables) async {
  for (final table in tables) {
    final safeTable = '"${table.replaceAll('"', '""')}"';
    await _db.customStatement('DELETE FROM $safeTable');
  }
}