MssqlSelectQueryExecution extension

Runs any built select, including a union.

The builder itself never touches a connection — that is what makes its output testable and loggable — so this is the seam where the two meet. It stays an extension rather than a method on MssqlSelectQuery so the separation survives: a query does not gain the ability to run itself.

on

Methods

get(MssqlSession session, {MssqlDialect dialect = MssqlDialect.sql2012, Duration? timeout, MssqlCancellationToken? cancellationToken, MssqlQueryOptions options = MssqlQueryOptions.defaults}) Future<List<MssqlRow>>

Available on MssqlSelectQuery, provided by the MssqlSelectQueryExecution extension

Every row, as the driver's own typed rows.
getAs<T>(MssqlSession session, T map(MssqlRow row), {MssqlDialect dialect = MssqlDialect.sql2012, Duration? timeout}) Future<List<T>>

Available on MssqlSelectQuery, provided by the MssqlSelectQueryExecution extension

Every row, mapped by map.