skip to Main Content

Postgresql – Jooq converter from Postgres array to scala list

I have a scala case class case class MyRecord( id: String, dimensions: List[String], // postgres text[] dimensionCodes: List[Long] // postgres integer[] ) and a Jooq query JooqBuilder .default(conn) .select( field("id", classOf[String]), field("dimensions", classOf[List[String]]), field("dimensionCodes", classOf[List[Long]]), ) .from(table(MY_TABLE)) .fetchInto(classOf[MyRecord]) .asScala .toList…

VIEW QUESTION
Back To Top
Search