Well things were kept separate intentionally.  If someone wants to use 
Korma or some other DSL within their migrations, they can augment their 
migration file to use that to generate the SQL, but having the migrations 
set up such that instructions to jdbc are simple clojure strings is very 
intentional.  This way I don't limit anyone's decision about what other 
libraries they use, but complicated migrations can easily be dynamically 
generated (since they are being picked up within the context of a clojure 
file).

Not sure I fully understand your point, but this seems like a reasonable 
case for modularity.


On Tuesday, October 29, 2013 8:49:55 AM UTC-7, Brian Craft wrote:
>
>
>
> On Monday, October 28, 2013 4:36:56 PM UTC-7, Chris Kuttruff wrote:
>>
>> Separate from DSLs like Korma, etc.  I have written a simple library for 
>> doing database migrations with clojure (clj-sql-up ( 
>> https://github.com/ckuttruff/clj-sql-up )).  There are also other 
>> libraries still maintained along these lines (drift, migratus, ragtime, 
>> etc.)
>>
>>
> It's unfortunate that these are separate, because you need the schema 
> information not just for migrations, but also for query abstraction (sql 
> dsl, etc.). The argument for small, composable libraries only works if they 
> can actually be meaningfully composed: if, in this case, a declared schema 
> can be used for migrations, and query abstraction, and administrative UI, 
> and anything else that requires it. So far there's not much like this in 
> clojure that I've found.
>

-- 
-- 
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