Slick: why would I save "Unit" to my database?
Posted
by
alapeno
on Stack Overflow
See other posts from Stack Overflow
or by alapeno
Published on 2014-05-31T15:22:22Z
Indexed on
2014/05/31
15:24 UTC
Read the original article
Hit count: 239
I'm new to Scala and Slick and was surprised by something in the Slick documentation:
The following primitive types are supported out of the box for JDBC-based databases in JdbcProfile
- ...
- Unit
- ...
I don't get why this list contains Unit
. From my understanding, Unit is similar to Java's void
, something I neither can save to nor receive from my database. What is the intention behind it?
edit: you can find it here.
© Stack Overflow or respective owner