I'm using SQLDelight. Can I use enum constant in t...
# squarelibraries
p
I'm using SQLDelight. Can I use enum constant in the query, so it'll be converted with the adapter?
Copy code
CREATE TABLE SomeTable(
  enumColumn TEXT AS EnumClass
);


update:
UPDATE SomeTable
SET enumColumn = EnumClass.EnumItem;
I can use argument instead of
EnumClass.EnumItem
, but my query only makes sense with single enum constant.
124 Views