core/command accepts db as explicit parameter option

This commit is contained in:
Toby Hede 2012-02-21 13:01:42 +11:00
parent 6c1dcdcc89
commit d982d27caa

View file

@ -167,9 +167,11 @@
For :distinct, :count, :drop, :dropIndexes, :mapReduce we suggest to use monger/collection #distinct, #count, #drop, #dropIndexes, :mapReduce respectively.
"
[^Map cmd]
([^Map cmd]
(.command ^DB *mongodb-database* ^DBObject (to-db-object cmd)))
([^DB database ^Map cmd]
(.command ^DB database ^DBObject (to-db-object cmd)))
)
(defprotocol Countable
(count [this] "Returns size of the object"))