batchlight / co.yello.db.batchlight / BatchStatement
class BatchStatement<T>
Drives the inserts into the database.
T - The type of the collection that will be inserted. This is used to pass into the bind function that is
passed into the execute function.
| Name | Summary |
|---|---|
| <init> | BatchStatement(binderConfig: BinderConfig)Drives the inserts into the database. |
| Name | Summary |
|---|---|
| execute | fun execute(itemsToInsert: Collection<T>, bindItemFunction: BatchBinder.(T) -> Unit): UnitChunks the list into the maximum sized list that can be inserted at a time, then executes the insert with the bindItemFunction passed into the class. |