Pure functional JDBC layer for Scala, providing a type-safe API for database access.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Executes a simple SQL query using Doobie.
import doobie._
import doobie.implicits._
import cats.effect.IO
object Example {
def main(args: Array[String]): Unit = {
val xa = Transactor.fromDriverManager[IO]("org.h2.Driver", "jdbc:h2:mem:test", "sa", "")
val program = sql"SELECT 1".query[Int].unique
val result = program.transact(xa).unsafeRunSync()
println(s"Result: $result")
}
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.