Skip to main content

All Questions

Tagged with
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....
Ramón J Romero y Vigil's user avatar
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 ...
Миша Попов's user avatar
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, ...
Nikita's user avatar
  • 2,934
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) = ...
santiromf's user avatar
  • 123