api-docs / org.ktorm.database / Database / executeBatch
executeBatch
fun executeBatch(expressions: List<SqlExpression>): IntArray
(source code)Batch execute the given SQL expressions and return the effected row counts for each expression.
Note that this function is implemented based on Statement.addBatch and Statement.executeBatch,
and any item in a batch operation must have the same structure, otherwise an exception will be thrown.
Parameters
expressions
- the SQL expressions to be executed.
Since
2.7
Return
the effected row counts for each sub-operation.