delete method

Future<int> delete(
  1. String command
)

Deletes data from the database based on the given command.

Returns the number of rows affected by the delete operation.

The command parameter is the SQL command to be executed.

Example usage:

DatabaseService databaseService = DatabaseService();
await databaseService.delete('DELETE FROM users WHERE id = 1');

Implementation

Future<int> delete(String command) async {
  return await _db.rawDelete(command) as int;
}