It depends on which kind of composability you mean. If we're talking about 
a "SELECT ... FROM ..." here with a "WHERE ..." there, I don't see why not. 
It's a down-the-road feature, but I'm open to it.

But the kind of composability that would get me excited is the 
cascalog/datalog kind. Where you could say, "SELECT * FROM employee" and 
mix that with "SELECT * FROM deparment" and get an automatic, 
sensibly-optimised join. That's real composibility, beyond mere string 
concatenation. No, I don't see Yesql ever supporting that. (There again, I 
haven't seen it from any of the Clojure-SQL-DSLs either. If you have, 
please point me to them. I'd be interested!)

Cheers,
Kris

On Tuesday, 12 November 2013 03:35:46 UTC, John Hume wrote:
>
> For me, the one feature that can justify an internal DSL for generating 
> SQL is the ability to compose queries. I assume that's not on the Yesql 
> roadmap. 
> On Nov 11, 2013 5:10 AM, "Kris Jenkins" <krisaj...@gmail.com <javascript:>> 
> wrote:
>
>> https://github.com/krisajenkins/yesql
>>
>> Yesql is a simple library for blending SQL & Clojure together, cleanly. 
>> Here's how it works <https://github.com/krisajenkins/yesql#rationale>, 
>> and how to use it <https://github.com/krisajenkins/yesql#example-usage>.
>>
>> Feedback welcomed,
>> Kris
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to