deleteJob method

Future<int> deleteJob(
  1. int id
)

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;
}