batchlight / co.yello.db.batchlight.androidsupportsqlite / SupportSQLiteBinderConfig
class SupportSQLiteBinderConfig : BinderConfig
The BinderConfig for Android Support SQLite.
| Name | Summary |
|---|---|
| <init> | SupportSQLiteBinderConfig(db: SupportSQLiteDatabase, batchStatement: String, fieldsPerItem: Int, maxFields: Int) |
| Name | Summary |
|---|---|
| fieldsPerItem | val fieldsPerItem: Intthe number of fields per row to be inserted. |
| maxFields | val maxFields: Intthe maximum number of binds that can happen per statement. |
| maxInsertBinder | val maxInsertBinder: BinderHolds a reference to the max insert binder. This will be the most common case so it should be cached. |
| maxInsertSize | val maxInsertSize: IntThe maximum number of items that can be inserted per statement. |
| startIndex | val startIndex: Int |
| Name | Summary |
|---|---|
| buildBinder | fun buildBinder(insertCount: Int): BinderCreates a Binder that has the given number of bind locations. |
| Name | Summary |
|---|---|
| getInsertConfig | fun getInsertConfig(db: SupportSQLiteDatabase, tableName: String, columnCount: Int, maxBinds: Int = sqlMaxBinds): SupportSQLiteBinderConfigCreates a statement generator for batch insert statements. |
| getReplaceConfig | fun getReplaceConfig(db: SupportSQLiteDatabase, tableName: String, columnCount: Int, maxBinds: Int = sqlMaxBinds): SupportSQLiteBinderConfigCreates a statement generator for batch replace statements. |