Skip to content

Pureconfig instances for Doobie's Transactor settings

License

Notifications You must be signed in to change notification settings

permutive-engineering/doobie-pureconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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