Compare commits
2 commits
master
...
3.0.x-stab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39f297740e | ||
|
|
f5fcdc7b49 |
2 changed files with 10 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
|||
## Changes between 3.0.2 and 3.0.3 (unreleased)
|
||||
|
||||
### Macro Type Hint Fixes
|
||||
|
||||
Contributed by Andre Ambrosio Boechat.
|
||||
|
||||
|
||||
## Changes between 3.0.1 and 3.0.2
|
||||
|
||||
### MongoDB Java Driver Update
|
||||
|
|
|
|||
|
|
@ -167,10 +167,11 @@
|
|||
(merge m { :limit per-page :skip (monger.internal.pagination/offset-for page per-page) }))
|
||||
|
||||
(defmacro with-collection
|
||||
[^DB db ^String coll & body]
|
||||
[db coll & body]
|
||||
`(let [coll# ~coll
|
||||
^DB db# ~db
|
||||
db-coll# (if (string? coll#)
|
||||
(.getCollection ~db ^String coll#)
|
||||
(.getCollection db# coll#)
|
||||
coll#)
|
||||
query# (-> (empty-query db-coll#) ~@body)]
|
||||
(exec query#)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue