create

fun create(dbFactory: BibleDatabaseFactory, filePath: String): BibleProvider

Creates a new instance of BibleProvider with a default BibleStoreService implementation. This factory method sets up the database connection using the provided factory and file path.

Return

A new BibleProvider instance ready for use

Parameters

dbFactory

The BibleDatabaseFactory instance to use for creating the database

filePath

The absolute path to the Bible database file


Deprecated

Use create(database) instead with BibleDatabaseFactory.create(filePath) for direct file path access

Replace with

create(database)

Creates a new instance of BibleProvider with a default BibleStoreService implementation. This factory method sets up the database connection and wraps it with the appropriate service layer.

Return

A new BibleProvider instance ready for use

Parameters

dbFactory

The BibleDatabaseFactory instance to use for data access