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.

<dependency> <groupId>org.tpolecat</groupId> <artifactId>doobie-postgres_2.13</artifactId> <version>0.13.4</version> </dependency>
INSTALL
IMPORT
SIG · DOOBIE-POSTGRES-2-
D
doobie-postgres-2-13
databasejavav0.13.4
harness data pending
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
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 issues
breakingDoobie 0.13.x uses Cats Effect 2; migration to CE3 requires Doobie 1.x.
fix
Upgrade to Doobie 1.x for Cats Effect 3 compatibility.
affects: <=0.13.4
Upgrade
Version history
0.13.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Amazon
1
Resources
doobie-postgres-2-13 — mvn dependency:get doobie-postgres-2-13 · libregistry