As subject says, how to query a table without condition (WHERE clause)?
For example, LookupTable.filter(r => true) (this doesn't work of course)
Thank you
Basically what you need to do is to use this:LookupTable.result
.
In fact this is exactly one of the first code samples in Slick documentation "Getting started section" here: http://slick.lightbend.com/doc/3.1.1/gettingstarted.html#querying
As there is no code pasted in your question I can only assume that you are aware of that you need to use db.run(...)
to fire you DBIO
(generated by this result
call).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With