Batchlight

batchlight / co.yello.db.batchlight.androidsupportsqlite / SupportSQLiteBinderConfig / getInsertConfig

getInsertConfig

fun getInsertConfig(db: SupportSQLiteDatabase, tableName: String, columnCount: Int, maxBinds: Int = sqlMaxBinds): SupportSQLiteBinderConfig

Creates a statement generator for batch insert statements.

Parameters

db - the database to perform the insert on.

tableName - the name of the table to preform the insert on.

columnCount - the number of columns that will be insert per row.

maxBinds - the total number of values that can be bound to the statement.