Ditto for monger.collection/create

This commit is contained in:
Michael S. Klishin 2012-01-29 07:30:11 +04:00
parent 76a3eafd5d
commit 025e8fce45

View file

@ -415,7 +415,9 @@
(defn create
"Creates a collection with a given name and options."
([^String collection ^Map options]
(.createCollection monger.core/*mongodb-database* collection (to-db-object options))))
(.createCollection monger.core/*mongodb-database* collection (to-db-object options)))
([^DB db ^String collection ^Map options]
(.createCollection db collection (to-db-object options))))
(defn drop
"Deletes collection from database.