batchlight / co.yello.db.batchlight / BatchBinder
class BatchBinder
A wrapper around a Binder to make sure binds happen in sequential order.
binder - the specific Binder to bind values to.
startBindIndex - the index to start binding to the binder.
| 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. |
| Name | Summary |
|---|---|
| currentBindIndex | var currentBindIndex: IntMarks the current binding position. |
| Name | Summary |
|---|---|
| bindBlob | fun bindBlob(blob: ByteArray): UnitBinds a ByteArray to the Binder and increments the position. |
| bindDouble | fun bindDouble(double: Double): UnitBinds a value of type Double to the Binder and increments the position. |
| bindLong | fun bindLong(long: Long): UnitBinds a value of type Long to the Binder and increments the position. |
| bindNull | fun bindNull(): UnitBinds a null value to the Binder and increments the bind position. |
| bindString | fun bindString(string: String): UnitBinds a value of type String to the Binder and increments the position. |