Registry / database / doobie-core-2-11

doobie-core-2-11

JSON →
library0.7.1javamavenunverified

Pure functional JDBC layer for Scala, providing a type-safe API for database access.

<dependency> <groupId>org.tpolecat</groupId> <artifactId>doobie-core_2.11</artifactId> <version>0.7.1</version> </dependency>
INSTALL
IMPORT
SIG · DOOBIE-CORE-2-11
D
doobie-core-2-11
databasejavav0.7.1
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.implicits
doobie.implicits._

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") } }
Debug
Known issues
breakingVersion 0.7.1 is for Scala 2.11; newer versions require Scala 2.12+.
fix
Upgrade to a newer Doobie version if using Scala 2.12 or 2.13.
affects: 0.7.x
Upgrade
Version history
0.7.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
6
Resources
doobie-core-2-11 — mvn dependency:get doobie-core-2-11 · libregistry