Introduction

doobie-typesafe is a typesafe wrapper for doobie that allows you to write queries in a typesafe way.

Goals of this library:

Non-goals:

Installation

Add the following to your build.sbt:

libraryDependencies += "io.github.arturaz" %% "doobie-typesafe" % "0.1.0"

Or build.sc if you are using mill:

override def ivyDeps = Agg(
  ivy"io.github.arturaz::doobie-typesafe:0.1.0"
)

The code from main branch can be obtained with:

resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies += "io.github.arturaz" %% "doobie-typesafe" % "0.2-c5b1b72-SNAPSHOT"

For mill:

  override def repositoriesTask = T.task {
    super.repositoriesTask() ++ Seq(
      coursier.Repositories.sonatype("snapshots")
    )
  }

override def ivyDeps = Agg(
  ivy"io.github.arturaz::doobie-typesafe:0.2-c5b1b72-SNAPSHOT"
)

The library is only published for Scala 3 due to the use of Scala 3 match types.

You can see all the published artifacts on MVN Repository, Maven Central, Sonatype or raw Maven repository.

Credits

This library was created by Artūras Šlajus. You can find me as arturaz on the Typelevel Discord Server in the #doobie channel.