doobie
doobie copied to clipboard
Functional JDBC layer for Scala.
Read not derived, next code results in such error `Cannot find or construct a Read instance for type: com.test.Main.DataWrapper2` But derivation works with simple Read[NewTypeWrapper] ``` package com.test import doobie._...
Hello, I recently worked through a case similar to the `Point` example which describes the need for `Read[A]` and `Write[A]`. The `select` worked well, the `insert/update` failed with 'type mismatch'...
### Context I have production log full of exceptions that look like: ``` d.u.invariant$UnexpectedContinuation$: Expected ResultSet exhaustion, but more rows were available. at d.u.invariant$UnexpectedContinuation$.(invariant.scala:30) at doobie.hi.resultset$.$anonfun$getOption$1(resultset.scala:218) at cats.free.Free.step(Free.scala:56) at cats.free.Free.$anonfun$foldMap$1(Free.scala:159)...
Howdy folks. I have a bit of a long question on how to handle struct types with Doobie & Postrgres. Assume the following toy schema: ```sql CREATE TYPE public."Payment" AS...
- Writing or reading `OffsetDateTime` or `Instant` as `TIMESTAMP` is generally an error. - Writing or reading `LocalDateTime` as `TIMESTAMPTZ` is generally an error. This was highlighted for me by...
With Doobie 0.12.1 and PostgreSQL 11. Given this setup: ```sql create schema custom; create type custom.foo as enum('Bar'); create type foo as enum('Bar'); ``` an analysis of a simple query...
I'm using Oracle database and I'm facing an issue when trying to retrieve the last generated ID via an insert statement. Oracle provides the possibility to retrieve the auto-generated keys...
It seems like I should only need one of those. That is if we're worried about doing stuff on the right blocking thread pool, then we use `Blocker` or we...
I started out with the documentation for custom mappings which mentioned support for Java's OffsetDateTime and ZonedDateTime out of the box but I had to go to stackoverflow to find...
I fought with this for a while until I understood what happened, https://github.com/typelevel/cats/issues/3812 . A possible way forward is to remove `implicit` from `TextInstances1#foldableInstance`. I think that should both plug...