deleteJob method
Deletes a specific job by its ID.
Returns the number of rows affected.
Implementation
Future<int> deleteJob(int id) async {
final ResultSet result = await db.execute(
"DELETE FROM background_service_jobs WHERE id = ?",
[id],
);
return result.length;
}