Alexander,
As I understand it, general Slick queries *are* TableQueries. Look the
code below:
val x5 = (for {
((c,e),cc) <- (Company leftJoin Employee on (_.id ===
_.companyId)) leftJoin CompanyClients on { case ((c,e), cc) =>
cc.companyId ===
c.id }
} yield (c,e, cc))
val restricted = x5.filter{ case (company, employee, cclient) =>
company.name === "ACME" }
As I made simple filter I could have mapped or flatmappted! Thus
composing the query.
Either I am failing to see your point or you are indeed missing something.
On Wed, Apr 9, 2014 at 9:15 PM, Alexander Abdugafarov
>
https://groups.google.com/d/msgid/scalaquery/bba09abd-eec8-4e2e-9cc8-8f764c174403%40googlegroups.com.