Ditto for monger.collection/create-index
This commit is contained in:
parent
b30071a2b3
commit
4d30f1625d
1 changed files with 6 additions and 3 deletions
|
|
@ -338,9 +338,12 @@
|
|||
(monger.collection/create-index collection { \"language\" 1 })
|
||||
|
||||
"
|
||||
[^String collection, ^Map keys]
|
||||
(let [^DBCollection coll (.getCollection monger.core/*mongodb-database* collection)]
|
||||
(.createIndex coll (to-db-object keys))))
|
||||
([^String collection ^Map keys]
|
||||
(let [^DBCollection coll (.getCollection monger.core/*mongodb-database* collection)]
|
||||
(.createIndex coll (to-db-object keys))))
|
||||
([^DB db ^String collection ^Map keys]
|
||||
(let [^DBCollection coll (.getCollection db collection)]
|
||||
(.createIndex coll (to-db-object keys)))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue