Registry / database / doobie-postgres-2-13

doobie-postgres-2-13

JSON →
library0.13.4javamavenunverified

PostgreSQL support for Doobie, a pure functional JDBC layer for Scala.

database
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.

doobie.postgres._

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) }
Debug
Known footguns
breakingDoobie 0.13.x uses Cats Effect 2; migration to CE3 requires Doobie 1.x.
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.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
mj12bot
1
Resources