doobie
doobie copied to clipboard
Functional JDBC layer for Scala.
It would be nice to have extension methods such as: implicit class arrayMetaDerivatives[A](val arrayMeta: Meta[Array[A]]) extends AnyVal { def asList(implicit classTag: ClassTag[A]): Meta[List[A]] = ??? def asSet(implicit classTag: ClassTag[A]): Meta[Set[A]]...
I have a case class for mapping rows that contains 43 fields. When I remove the last few fields so the case class only has 35 the error below goes...
As discussed on gitter (https://gitter.im/tpolecat/doobie?at=5cdcafe9252dbb751563b1c7 and below), we should add a `values` function to map types to `(?, ?, [...])` `VALUES` placeholders. Referenced code in gitter : ```scala // pre-stacksafe...
When using this method to fetch a table entry with a `MultiPolygon` field: ``` override def fetch(id: model.SubmarketId): F[Submarket] = selectById(id) .query[Submarket] .unique .transact(xa) ``` I get the following error:...
Currently, the documentation show insertion examples being done only through individual values: ```scala def insert1(name: String, age: Option[Short]): Update0 = sql"insert into person (name, age) values ($name, $age)".update scala> insert1("Alice",...
Currently `Apply[Read].ap` is implemented like this: ``` def ap[A, B](ff: Read[A => B])(fa: Read[A]): Read[B] = fa.ap(ff) ``` That is, it first reads `fa`, and then `ff`. This leads to...
As discussed in Gitter, found a way to reproduce the "idle in transaction" lost connections. Hopefully self explanatory: ```scala package test import cats._, cats.data._, cats.implicits._, cats.effect._ import doobie._, doobie.implicits._ import...
Currently the code has: ```scala case ExecFailure(s, a, e1, t) => jdkLogger.severe(s"""Failed Statement Execution: | | ${s.lines.dropWhile(_.trim.isEmpty).mkString("\n ")} | | arguments = [${a.mkString(", ")}] | elapsed = ${e1.toMillis} ms exec...
Intellij dislikes the ANSI codes in the `fail` reports for scalatest - it makes the IDE think the test suite is terminated, and it doesn't accurately report that test's failure....
There are probably some remaining `throws` left over from prehistory. Get rid of them because they don't work well with zio.