Ditto for monger.collection/create
This commit is contained in:
parent
76a3eafd5d
commit
025e8fce45
1 changed files with 3 additions and 1 deletions
|
|
@ -415,7 +415,9 @@
|
||||||
(defn create
|
(defn create
|
||||||
"Creates a collection with a given name and options."
|
"Creates a collection with a given name and options."
|
||||||
([^String collection ^Map 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
|
(defn drop
|
||||||
"Deletes collection from database.
|
"Deletes collection from database.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue