Batchlight

batchlight / co.yello.db.batchlight / BatchBinder

BatchBinder

class BatchBinder

A wrapper around a Binder to make sure binds happen in sequential order.

Parameters

binder - the specific Binder to bind values to.

startBindIndex - the index to start binding to the binder.

Constructors

Name Summary
<init> BatchBinder(binder: Binder, startBindIndex: Int)
Creates a BatchBinder with the given binder. The binder will be cleared on creation to ensure no pre existing values will be bound unintentionally.

Properties

Name Summary
currentBindIndex var currentBindIndex: Int
Marks the current binding position.

Functions

Name Summary
bindBlob fun bindBlob(blob: ByteArray): Unit
Binds a ByteArray to the Binder and increments the position.
bindDouble fun bindDouble(double: Double): Unit
Binds a value of type Double to the Binder and increments the position.
bindLong fun bindLong(long: Long): Unit
Binds a value of type Long to the Binder and increments the position.
bindNull fun bindNull(): Unit
Binds a null value to the Binder and increments the bind position.
bindString fun bindString(string: String): Unit
Binds a value of type String to the Binder and increments the position.