korma / Korma

Tasty SQL for Clojure.
http://sqlkorma.com
1.48k stars 222 forks source link

Adds a *current-options* variable so with-db would honor database specific options #284

Closed ls4f closed 9 years ago

ls4f commented 9 years ago

Finally got to https://github.com/korma/Korma/issues/282 . Not 100% sure that's the best way to go at it. Feedback is welcome :)

immoh commented 9 years ago

Why does it need to be new dynamic var, can't we just call (:options *current-db*)?

Please also get rid of the white space changes.

ls4f commented 9 years ago

Somehow new var seemed cleaner to use, no real reason. Sorry about the auto-indent. Fixed it.

immoh commented 9 years ago

Thanks!