On 26 February 2010 23:37, Matt <macourt...@gmail.com> wrote:
> I've had rails like migrations working in Conjure (0.4 coming soon)
> for a while. You may want to look at it for some help.

Thanks for the links Matt, I'll certainly take a look when I have some
more time.

I implemented these migrations for a small application, so I wanted
something lightweight and simple.  Consequently I've not been too
concerned about portability across databases, as I'm confident derby
will be all we'll ever need (for this application).

To keep things simple I also opted to have the migrations specified in
a single clojure file, as a single sorted-map.  I'm not expecting to
have a large database full of tables, and I find having the schema
defined in a single file is easier to read.

This approach might not scale to larger projects, but for smaller ones
I'm hoping it'll be adequate.  Any comments you and others might have
on the code idioms used would be appreciated though...  As I'm sure it
can be tidied up a fair bit.

> To deal with the table schema problem, I had to create flavors for
> each database Conjure supports. I don't think there's much you can do
> to avoid flavors when you're trying to reflect on tables in a
> database.

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

Reply via email to