Join Slack
Powered by
in sqldelight since it’s not supported to use an e...
# squarelibraries
w
William Reed
05/03/2024, 1:36 PM
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
cb
05/03/2024, 1:57 PM
It is supported, you just have to map it to a primitive like any other object.
w
William Reed
05/03/2024, 1:58 PM
source? > There are no plans to support it per this thread
https://kotlinlang.slack.com/archives/C5HT9AL7Q/p1696598584042569
c
cb
05/03/2024, 1:59 PM
That is referring to referencing the class in SQL, you’ll need to reference whatever primitive value you map to.
z
Zoltan Demant
05/05/2024, 8:48 AM
I really loved the advice and have stuck with using them as arguments ever since, 0 problems.
👍 1
36
Views
Open in Slack
Previous
Next