slick/slick — pull request #253 by cchantep (2013-11-15 15:39:33+00:00)
Title: Executed static queries, to support not only result (either update count...

... or result set) but also execution information (by now at least SQLWarning from statement):

```scala
import java.sql.SQLWarning
import scala.slick.{ StaticQuery => Q, ExecutedStaticQuery => E, GetResult }

// With update
val update: E = (Q.u1[(Int, String, Int)] + "insert into POSTS values (?, ?, ?)").
applied(_).executedQuery()
val upWarn: Option[SQLWarning] = update.warning

// With query
val query = (Q(GetResult { r => (r.nextString, r.view1.to[List](GetResult(_.nextString))) }) + """
select u.NAME, (u.r0 + p.r0), p.NAME
from (select *, rownum as r0 from USERS order by NAME) u
left join (select *, 0 as r0 from POSTS order by NAME) p
on u.ID = p.UID
order by u.r0
""").executedQuery()
val queryWarn: Option[java.sql.SQLWarning] = query.warning
val resultList = query.list // go on as usual on 'mapping'/reading result
```