Search code examples
scalaplayframeworkplayframework-2.0squeryl

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 }

Solution

  • This should do it.

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