Ditto for monger.collection/rename
This commit is contained in:
parent
3df399c2be
commit
dccb4770f1
1 changed files with 4 additions and 1 deletions
|
|
@ -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))))
|
||||
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue