The org.squeryl.Query.statement method returns the statement with the JDBC’s prepared
statement parameters substituted.
To log all SQL activity of a session, use org.squeryl.Session.currentSession.setLogger(String => Unit)
the closure receives all SQL statements and gets to do what it wants with it.
In SQL, queries that consist of only aggregate functions (without group by clause)
always return exactly one row. Squeryl allows you to implicitly convert them to tuples
or to a scalar, as following example illustrates :
Instead of the (slightly) more verbose way :
The trait : org.squeryl.PersistenceStatus when mixed in a class provides the isPersisted method, it is extended by KeyedEntity[K].