Pureconfig instances for Doobie's Transactor settings
Add the following line to your build.sbt
file:
libraryDependencies += "com.permutive" %% "doobie-pureconfig" % "0.1.0"
The library is published for Scala versions: 2.13
and 3
.
This library provides ConfigReader
instances for Doobie's hikari.Config
as well as a new case class DoobieConfig
that wraps hikari.Config
and adds a few more fields like data-source properties.
To use it just add the following import to your project:
import doobie.pureconfig._
And use either hikari.Config
or DoobieConfig
in your configuration classes.
alejandrohdezma |