batchUpdate
abstract suspend fun batchUpdate(context: QueryExecutor, entities: Iterable<T>): DbResult<List<T>>(source)
Updates multiple entities in the data source using the specified driver context.
This method performs an asynchronous batch update operation and returns the result. If the operation is successful, the result will contain the list of updated entities. In case of failure, the result contains the error details.
Note: Batch update is not supported for SQLite dialect (no FROM VALUES / ON DUPLICATE KEY support).
Return
A DbResult containing the list of updated entities of type T if the operation is successful, or an error if the operation fails.
Parameters
context
The database driver context used to execute the batch update operation.
entities
The collection of entities of type T to be updated in the data source.