get method
Every matching row. There is no hidden limit.
Implementation
Future<List<TRow>> get() async {
final dialect = await _resolvedDialect();
final scopes = context.scopeCompiler(state.scope);
final loader = _loaderFor(session, dialect);
final mappingWatch = Stopwatch()..start();
final rows = await _select(scopes: scopes).get(
session,
dialect: dialect,
timeout: state.options.timeout,
cancellationToken: state.options.cancellationToken,
options: state.options,
);
final mapped = rows.map(binding.fromRow).toList(growable: false);
mappingWatch.stop();
final relationWatch = Stopwatch()..start();
final attached = await _attachOn(
session,
mapped,
dialect: dialect,
loader: loader,
);
relationWatch.stop();
_notifyRead(
rowCount: attached.length,
mappingElapsed: mappingWatch.elapsed,
relationLoadElapsed: relationWatch.elapsed,
);
return attached;
}