Companion
object Companion
Functions
Link copied to clipboard
Helper method for making a database
Link copied to clipboard
fun createSimpleDb(tableDefinitions: Set<DbTableData>, dbName: String, dbDirectory: Path = KSL.dbDir, deleteIfExists: Boolean = true, dbType: EmbeddedDbType = EmbeddedDbType.SQLITE): Database
This constructs a database on disk. The database will contain empty tables based on the table definitions.
Link copied to clipboard
Assumes that the properties are appropriately configured to create a DataSource via HikariCP