All Questions
4
questions
0
votes
1
answer
347
views
Doobie cannot find or construct a Read instance for Type of case class with Timestamp
Given a case class representation of a data row with a java.sql.Timestamp:
case class ExampleRow(id: String, ts: Timestamp)
And query expecting an ExampleRow:
import doobie._
import doobie....
1
vote
1
answer
746
views
Cannot find or construct a Read instance for type: Option[A]
Why doobie can't convert query as Option[A]?
abstract class CRUDAbs[A: Read](val tableName: String) extends TransactSQL {
def table: Fragment = Fragment.const(s"$tableName")
def ...
1
vote
0
answers
706
views
Postgresql array encoding in Doobie – text[] vs varying[]
Suppose we have this postgresql schema:
CREATE TABLE "temp" (id int, fields text[]);
INSERT INTO "temp" VALUES
(1, array['abc', 'def']),
(2, array['abc', 'def', 'jkl']),
(3, ...
12
votes
1
answer
5k
views
Doobie cannot find or construct a Read instance for type T
I'm using doobie to query some data and everything works fine, like this:
case class Usuario(var documento: String, var nombre: String, var contrasena: String)
def getUsuario(doc: String) =
...