go method
Deletes all rows matched by the set where clause and the optional limit.
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> go() async {
final ctx = constructQuery();
return database.withCurrentExecutor((e) async {
final rows = await e.runDelete(ctx.sql, ctx.boundVariables);
if (rows > 0) {
database.notifyUpdates(
{TableUpdate.onTable(_sourceTable, kind: UpdateKind.delete)});
}
return rows;
});
}