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

Using a Custom Enum Json Converter

I am looking to create a custom JSON converter on my C# application. When I instantiate a new class I am unable to leave it generic. Class: using System.Text.Json; using System.Text.Json.Serialization; public class Converter<T> : JsonConverter<T> where T : Enum…

VIEW QUESTION
Back To Top
Search