PostgreSQL support for Doobie, a pure functional JDBC layer for Scala.
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.
Run a simple SQL query using Doobie with PostgreSQL.
import doobie._
import doobie.implicits._
import doobie.postgres._
import cats.effect.IO
object Example extends App {
val xa = Transactor.fromDriverManager[IO](
"org.postgresql.Driver",
"jdbc:postgresql://localhost/test",
"user",
"pass"
)
val program = sql"SELECT 1".query[Int].unique
val result = program.transact(xa).unsafeRunSync()
println(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.