Outline monger.collection API
This commit is contained in:
parent
8ee5b8f717
commit
eb3b76f05a
1 changed files with 12 additions and 0 deletions
|
|
@ -6,6 +6,18 @@
|
||||||
;; API
|
;; API
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
;; monger.collection/insert
|
||||||
|
;; monger.collection/find
|
||||||
|
;; monger.collection/group
|
||||||
|
|
||||||
|
;; monger.collection/count
|
||||||
(defn ^long count
|
(defn ^long count
|
||||||
[^DB db, ^String collection]
|
[^DB db, ^String collection]
|
||||||
(.count (.getCollection db collection)))
|
(.count (.getCollection db collection)))
|
||||||
|
|
||||||
|
;; monger.collection/update
|
||||||
|
;; monger.collection/update-multi
|
||||||
|
;; monger.collection/remove
|
||||||
|
|
||||||
|
;; monger.collection/ensure-index
|
||||||
|
;; monger.collection/drop-index
|
||||||
Loading…
Reference in a new issue