atomicWrite method
Executes transaction-safe DML statements as one atomic write batch.
Every statement must declare SqlStatementKind.write. An empty batch is valid and returns an empty result without starting a transaction.
Results preserve input order. Either every statement commits or none do. Transaction control, DDL that implicitly commits, and row-returning statements are outside this contract.
Implementation
@override
Future<List<SqlWriteResult>> atomicWrite(List<BoundSql> statements) {
final batch = List<BoundSql>.unmodifiable(statements);
return _schedule(() => _atomicWrite(batch));
}