Thanks Nick. I'm aware of the string splicing feature, unfortunately that doesn't quite meet my requirements, for the following reasons:
(1) I need to be able to arbitrarily compose sql statements together, adding some arbitrary number of filters ("where x = y"). As shown in my initial post, slick doesn't allow me to add two sql statements together.
(2) Some of the filters involve timestamp comparisons. Rather than trying to convert the timestamp bounds into strings and possibly getting that wrong, it would be nice if I could just give those values to slick as positional parameters, since slick is good at that kind of thing.
I found out that I can use the StaticQuery API and use Slick's deprecated db.withSession { ... } API to invoke it. This is working for me, but as soon as Slick removes that API I'll be screwed. I really hope slick will continue to support an API for composing (combining) plain sql queries.
Thanks,
Jim