in sqldelight since it’s not supported to use an e...
# squarelibraries
w
in sqldelight since it’s not supported to use an enum constant in a query, is there an alternative to use? pass it in as an argument?
c
It is supported, you just have to map it to a primitive like any other object.
w
source? > There are no plans to support it per this thread https://kotlinlang.slack.com/archives/C5HT9AL7Q/p1696598584042569
c
That is referring to referencing the class in SQL, you’ll need to reference whatever primitive value you map to.
z
I really loved the advice and have stuck with using them as arguments ever since, 0 problems.
👍 1