initBetterSqlite3SqlDriver
suspend fun initBetterSqlite3SqlDriver(filename: String, schema: SqlSchema<QueryResult.AsyncValue<Unit>>? = null, beginImmediate: Boolean = false, readers: Int = 0): SQLiteDriver
Opens filename with the better-sqlite3 Node.js module, in its own worker thread.
Parameters
schema
created right after opening when given
beginImmediate
start transactions with BEGIN IMMEDIATE
readers
extra connections for SELECT queries outside transactions, each in its own worker thread, so reads run in parallel; switches the database to WAL, needs a database file; since 1.1.0