← Back to Stormify Documentation

Stormify

constructor(dataSource: DataSource, vararg registrars: EntityRegistrar, poolConfig: PoolConfig = PoolConfig())

Parameters

dataSource

the data source for all database operations

registrars

optional entity registrars to register at construction time

poolConfig

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.


constructor(dataSource: DataSource, poolConfig: PoolConfig)

Convenience constructor with pool tuning and no registrars.