permutive-engineering / doobie-pureconfig   0.1.0

Apache License 2.0 GitHub

Pureconfig instances for Doobie's Transactor settings

Scala versions: 3.x 2.13

Pureconfig instances for Doobie's Transactor settings


Installation

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.

Usage

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.

Contributors to this project

alejandrohdezma
alejandrohdezma