Outline monger.collection API

This commit is contained in:
Michael S. Klishin 2011-08-04 18:33:52 +04:00
parent 8ee5b8f717
commit eb3b76f05a

View file

@ -6,6 +6,18 @@
;; API
;;
;; monger.collection/insert
;; monger.collection/find
;; monger.collection/group
;; monger.collection/count
(defn ^long count
[^DB db, ^String collection]
(.count (.getCollection db collection)))
;; monger.collection/update
;; monger.collection/update-multi
;; monger.collection/remove
;; monger.collection/ensure-index
;; monger.collection/drop-index