Jonathan Hollingsworth
10/05/2021, 1:16 AMdefaultValue, but the type of that value is dependent on dataType property. I was thinking I’d need a union type for defaultValue, but just found out Kotlin doesn’t support that.
I could use Any, but that breaks the kotlinx.serialization @Serialiazable annotation.
Has anyone got any ideas or can point me in the right direction?hho
10/05/2021, 1:56 AMJonathan Hollingsworth
10/05/2021, 2:09 AMdataType is going to be a string representing a postgres data type, but I might be able to use that with a mapOf or something to determine the relevant type.andylamax
10/05/2021, 7:15 AMJonathan Hollingsworth
10/05/2021, 7:20 AM