Stormify
constructor(dataSource: DataSource, vararg registrars: EntityRegistrar, poolConfig: PoolConfig = PoolConfig())
Parameters
data Source
the data source for all database operations
registrars
optional entity registrars to register at construction time
pool Config
tuning for the connection pool behind suspending. The defaults are sensible for most applications — see PoolConfig for the double-pooling warning when dataSource already pools (e.g. HikariCP).
constructor(dataSource: DataSource)
Single-argument convenience constructor. Exists primarily so Spring XML <constructor-arg ref="dataSource"/> (and similar DI containers that resolve constructors by arity) can pick an unambiguous one-arg match.
Convenience constructor with pool tuning and no registrars.