delete method
DELETE
Implementation
Future<void> delete() async {
if (_wheres.isEmpty) {
throw Exception('Delete requires a where clause.');
}
final sql = 'DELETE FROM $table WHERE ${_wheres.join(' AND ')}';
await DB.query(
sql,
namedParams: DB.driver == DBDriver.postgres ? _bindings : null,
positionalParams:
DB.driver == DBDriver.mysql ? _bindings.values.toList() : null,
);
}