doSelectSQL method

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

Implementation

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

  return connection
      .query(sql.sqlPositional, sql.parametersValuesByPosition)
      .resolveMapped(_resultsToEntitiesMaps);
}