createDatabase
Creates and initializes the Bible database from a direct file path. No copying occurs - the database is opened directly from the provided path.
Return
Initialized BibleDatabase instance
Parameters
filePath
The absolute file path to the database file
driverFactory
Platform-specific factory for creating the database driver
fun createDatabase(driverFactory: DriverFactory, replaceDatabase: Boolean, completionHandler: () -> Unit): BibleDatabase
Deprecated
Use createDatabase(filePath, driverFactory) instead to open databases directly without copying
Replace with
createDatabase(filePath, driverFactory)Content copied to clipboard
Creates and initializes the Bible database from assets/bundle.
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