Package-level declarations

Functions

Link copied to clipboard
fun databaseModule(database: KeelDatabase): Module

Creates a Koin module for an already initialized KeelDatabase. Use this when the database is initialized externally.

fun databaseModule(config: DatabaseConfig, initialize: Boolean = true): Module

Creates a Koin module for database configuration and dependency injection.

Link copied to clipboard
fun h2MemoryDatabaseModule(name: String = "testdb", username: String = "sa", password: String = "", poolSize: Int = 10): Module

Creates a Koin module for H2 in-memory database (useful for testing).

Link copied to clipboard
fun sqliteDatabaseModule(filePath: String): Module

Creates a Koin module for SQLite database.