createDatabase

fun createDatabase(driverFactory: DriverFactory, replaceDatabase: Boolean, completionHandler: () -> Unit): BibleDatabase

Creates and initializes the Bible database.

Return

Initialized BibleDatabase instance

Parameters

driverFactory

Platform-specific factory for creating the database driver

replaceDatabase

Whether to replace the existing database with a new one

completionHandler

Callback that receives the new database version after successful creation