runReturning method
Future<List<MssqlRow> >
runReturning(
- MssqlSession session, {
- MssqlDialect dialect = MssqlDialect.sql2012,
- Duration? timeout,
Runs the statement and returns the rows its OUTPUT clause produced.
The clause must already be on the statement, through returning().
Adding it here by string-replacing the compiled SQL would work only for
the shape it was written for.
Implementation
Future<List<MssqlRow>> runReturning(
MssqlSession session, {
MssqlDialect dialect = MssqlDialect.sql2012,
Duration? timeout,
}) =>
_returning(session, compile(dialect: dialect), output, 'INSERT', timeout);