DatabaseBuilder

abstract class DatabaseBuilder

Abstract builder class for constructing a DatabaseProvider.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The database configuration.

Functions

Link copied to clipboard
abstract fun build(): DatabaseProvider

Builds and returns a DatabaseProvider instance.

Link copied to clipboard
fun config(config: DatabaseConfig)

Sets the database configuration.

fun config(driver: String, url: String, user: String = "", password: String = "")

Sets the database configuration using individual parameters.

Link copied to clipboard
fun table(vararg table: Table)

Registers one or more tables to the database. These tables will be created or updated upon initialization.