Batchlight

batchlight / co.yello.db.batchlight / BinderConfig

BinderConfig

interface BinderConfig

Holds all the configurations for a Binder.

Properties

Name Summary
fieldsPerItem abstract val fieldsPerItem: Int
If an object has 4 fields and only 3 should be written to the database this value should be set to 3.
maxFields abstract val maxFields: Int
maxInsertBinder abstract val maxInsertBinder: Binder
Holds a reference to the max insert binder. This will be the most common case so it should be cached.
maxInsertSize abstract val maxInsertSize: Int
startIndex abstract val startIndex: Int

Functions

Name Summary
buildBinder abstract fun buildBinder(insertCount: Int): Binder
Creates a Binder that has the given number of bind locations.

Inheritors

Name Summary
SQLiteBinderConfig class SQLiteBinderConfig : BinderConfig
The BinderConfig for Android SQLite.
SupportSQLiteBinderConfig class SupportSQLiteBinderConfig : BinderConfig
The BinderConfig for Android Support SQLite.