compileDelete method

Compiled compileDelete(
  1. QueryBuilder<Object?> q
)

Implementation

Compiled compileDelete(QueryBuilder<Object?> q) {
  final bindings = <Object?>[];
  final where = compileWheres(q.wheres, bindings);
  return (
    'delete from ${wrapTable(q.table)}${where.isEmpty ? '' : ' where $where'}',
    bindings,
  );
}