Ditto for monger.collection/rename

This commit is contained in:
Michael S. Klishin 2012-01-29 07:28:37 +04:00
parent 3df399c2be
commit dccb4770f1

View file

@ -438,8 +438,11 @@
([^String from, ^String to]
(let [^DBCollection coll (.getCollection monger.core/*mongodb-database* from)]
(.rename coll to)))
([^String from, ^String to, ^Boolean drop-target]
([^String from ^String to ^Boolean drop-target]
(let [^DBCollection coll (.getCollection monger.core/*mongodb-database* from)]
(.rename coll to drop-target)))
([^DB db ^String from ^String to ^Boolean drop-target]
(let [^DBCollection coll (.getCollection db from)]
(.rename coll to drop-target))))
;;