budu / lobos

A library to create and manipulate SQL database schemas with migrations support.
http://budu.github.com/lobos/
267 stars 56 forks source link

Lobos uses old java.jdbc library #43

Open jsyrjala opened 12 years ago

jsyrjala commented 12 years ago

Lobos currently uses [org.clojure/java.jdbc "0.1.1"] when the latest is [org.clojure/java.jdbc "0.2.2"].

Note also that java.jdbc 0.2.2 is not backwards compatible 0.1.1 and 0.1.3. Namespace clojure.java.jdbc.internal does not exist in 0.2.2.

jcrossley3 commented 12 years ago

This prevents lobos from being used in a project that also uses korma, because the latter uses 0.2.2

aviflax commented 12 years ago

I also just got snagged by this. And after I learned how to write all my migrations using the Lobos DSL!

Are there any plans to upgrade to the current java.jdbc?

johanvanzijl commented 12 years ago

I have been taking a long hard look at this problem. From java.jdbc 0.2.0 the functions in the internal namespace was collapsed into clojure.java.jdbc but more importantly a lot of vars/functions(e.g. db, get-connection, etc.) were made private. Lobos makes uses these a lot (see e.g. connectivity.clj) and looks like a heavy refactoring will be required. Would also like to know what the plans are?

polygloton commented 12 years ago

Same here. Would like to use Korma and Lobos together.

jsyrjala commented 12 years ago

Latest version of org.clojure/java.jdbc is now 0.2.3. I too plan to use lobos with korma.

polygloton commented 12 years ago

I ended up using lein-multi to use korma and lobos together, in case that helps anyone.

sebastiansen commented 11 years ago

+1

jtoy commented 10 years ago

+1

danenania commented 10 years ago

Specifying the latest version of jdbc in your dependencies fixes this conflict:

[org.clojure/java.jdbc "0.2.3"]