delete method

Future<int> delete(
  1. Insertable<D> entity
)

Deletes just this entity. May not be used together with where.

Returns the amount of rows that were deleted by this statement directly (not including additional rows that might be affected through triggers or foreign key constraints).

Implementation

Future<int> delete(Insertable<D> entity) {
  assert(
      whereExpr == null,
      'When deleting an entity, you may not use where(...)'
      'as well. The where clause will be determined automatically');

  whereSamePrimaryKey(entity);
  return go();
}