customStatement method
Executes the custom sql
statement with variables instantiated to args
.
The statement will be added to this batch and executed when the batch completes. So, this method returns synchronously and it's not possible to inspect the return value of individual statements.
See also:
- DatabaseConnectionUser.customStatement, the equivalent method outside of batches.
Implementation
void customStatement(String sql, [List<dynamic>? args]) {
_addSqlAndArguments(sql, args ?? const []);
}