destroy method

Future<void> destroy(
  1. dynamic id
)

Deletes a model by its primary key.

Implementation

Future<void> destroy(dynamic id) async {
  await QueryBuilder(_tableName, _executor)
      .where('id', '=', id)
      .delete();
}