Companion

Functions

Link copied to clipboard
fun h2File(filePath: String, username: String = "sa", password: String = "", poolSize: Int = 10): DatabaseConfig

Create an H2 file-based database configuration.

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

Create an H2 in-memory database configuration. Useful for testing.

Link copied to clipboard
fun mysql(host: String, port: Int = 3306, database: String, username: String, password: String, poolSize: Int = 10): DatabaseConfig

Create a MySQL database configuration.

Link copied to clipboard
fun postgresql(host: String, port: Int = 5432, database: String, username: String, password: String, poolSize: Int = 10): DatabaseConfig

Create a PostgreSQL database configuration.

Link copied to clipboard
fun sqlite(filePath: String): DatabaseConfig

Create a SQLite database configuration.