Hi, I am learning Scylla and I have a question. How do I set up an analogue of enum? I have a status field with certain values ( WaitForStart, Started, In progress, Finished, Error, Paused, Stopped ). How will it look like in ScyllaDb. Thought of making a UDT, but then how to constrain values to it?
AFAIK ScyllaDB (and Cassandra) don’t implement enum directly.
You can achieve this behavior from the application layer. Have a look at the ScyllaDB Rust driver and the Java driver for details.
Thank you for your reply.
That’s what I did.