Squeryl: Run query explicitly
When I create a query in squeryl, it returns a Query[T] object. The query was not yet executed and will be, when I iterate over the Query object (Query[T] extends Iterable[T]). Around the execution of a query there has to be either a transaction{} or a inTransaction{} block. I'm just speaking of SELECT queries and transactions wouldn't be necessary, but the squeryl framework needs them. I'd like to create a query in the model of my application and pass it directly to the view where a view helper in the template iterates over it and presents the data. This is only possible when putting the