LuxuryMode
LuxuryMode

Reputation: 33741

Select all with Squeryl scala

I'm trying to select ALL of some table in a query. I have to specify a where clause (or so I tihnk), so what goes in there?

def all() = transaction { from(AppDB.users)(s => where(WHAT GOES HERE?) select(s)).toIndexedSeq }

Upvotes: 2

Views: 1213

Answers (1)

Kyle
Kyle

Reputation: 22268

This should do it.

from(AppDB.users)(s => select(s))

Upvotes: 8

Related Questions