dataSource

fun dataSource(properties: Properties): DataSource

Assumes that the properties are appropriately configured to create a DataSource via HikariCP

Return

a pooled connection DataSource

Parameters

properties

the properties


fun dataSource(pathToPropertiesFile: Path): DataSource

Return

a DataSource for making a database

Parameters

pathToPropertiesFile

must not be null