doDeleteSQL method

  1. @override
FutureOr<Iterable<Map<String, dynamic>>> doDeleteSQL(
  1. String entityName,
  2. String table,
  3. SQL sql,
  4. Transaction transaction,
  5. DBMySqlConnectionWrapper connection,
)
override

Implementation

@override
FutureOr<Iterable<Map<String, dynamic>>> doDeleteSQL(
    String entityName,
    String table,
    SQL sql,
    Transaction transaction,
    DBMySqlConnectionWrapper connection) {
  if (sql.isFullyDummy) return <Map<String, dynamic>>[];

  var preSQLs = sql.preSQL;

  if (preSQLs != null) {
    return _executeSQLs(preSQLs, connection)
        .resolveWith(() => _doDeleteSQLImpl(table, sql, connection));
  } else {
    return _doDeleteSQLImpl(table, sql, connection);
  }
}