This topic has come up on the mailing list: https://groups.google.com/forum/#!topic/scalaquery/IUuwllTZZAo One FP solution: http://blog.alexander-semenov.com/monadic-abstraction