compileDelete method

  1. @override
String compileDelete(
  1. Map<String, dynamic> query
)
override

Compile a delete statement into SQL.

Implementation

@override
String compileDelete(Map<String, dynamic> query) {
  final table = wrapTable(query['table']);
  final wheres = query['wheres'] != null
      ? compileWheres(query['wheres'])
      : '';

  return 'DELETE FROM $table $wheres'.trim();
}