DatabaseActions extension

Reusable database operations shared across repositories.

on

Methods

deleteEverything() Future<void>

Available on AppDatabase, provided by the DatabaseActions extension

Drops and recreates all tables, fully resetting the database.
getOrCreateSemester(int year, int term) Future<int>

Available on AppDatabase, provided by the DatabaseActions extension

Returns the ID of an existing semester row, or creates one if missing.