skip to Main Content

Using Postgres enum with Quill – Postgresql

I'm trying to use a Scala 2 enum with Quill, like so: import io.getquill.MappedEncoding object MyEnumType extends Enumeration { type MyEnumType = Value val ONE, TWO, THREE = Value implicit val encode: MappedEncoding[MyEnumType, String] = MappedEncoding(_.toString) implicit val decode: MappedEncoding[String,…

VIEW QUESTION
Back To Top
Search