Hi,
For some time I have been working on a Clojure DSL/wrapper for Liquibase 2.0 version. Though it is in alpha stage right now and no unit tests are written yet, I am still happy to announce it and you can find the sources here:
http://bitbucket.org/kumarshantanu/clj-liquibase/src
Your feedback, comments are most welcome. When building from sources, you will need to clone these as dependencies:
http://bitbucket.org/kumarshantanu/clj-miscutil/src
http://bitbucket.org/kumarshantanu/clj-dbspec/src
Regards,
Shantanu
I’m interested to see how it works. Thanks for creating it!
Nathan
For a small sample of how the DSL will be expressed/look-like:
http://bitbucket.org/kumarshantanu/clj-liquibase/src/38a4a14a9fdb/src/test/clj/org/bituf/test.clj
It is still laced with debugging wrappers (mu/!) to report any exceptions in a nice format, which will go away in the final version. The main entry point is ‘defchangelog’ that actually creates a var for changelog. A typical changelog file will look like this same test.clj but without the datasource vars and without any update/tag/rollback functions.
I am planning to have them invoked using a Leiningen http://github.com/technomancy/leiningen plugin later:
http://bitbucket.org/kumarshantanu/lein-lb/src
Please feel free to ask any questions you may have.
Regards,
Shantanu