Commit graph

1225 commits

Author SHA1 Message Date
amitvshah25
1a256a6033
Update operators.clj
Added count and dateToString operators.
2017-12-14 12:58:44 -05:00
Michael Klishin
be43faf059 Update ChangeLog.md 2017-05-10 00:51:04 +03:00
Michael Klishin
bcaf0837b4 Merge pull request #157 from Linicks/patch-1
Update dependencies to support MongoDB 3.4.x
2017-05-10 00:48:58 +03:00
Nick
319872d5bc Update dependencies to support MongoDB 3.4.x
In order for Monger to work with MongoDB 3.4.x and higher, the Java driver must also be 3.4.x and higher.  Additionally, the 3.4.x driver series will generally work with Java version 6.x, it requires 7.x, and even 8.x for specific SSL functions that are needed by some "Platform As A Service" providers such as MongoDB Atlas.  Here are some relevant links that provide some additional details: 

- http://mongodb.github.io/mongo-java-driver/3.4/upgrading/
- https://docs.atlas.mongodb.com/driver-connection/#java-driver-example
- http://mongodb.github.io/mongo-java-driver/?_ga=2.85301265.905224850.1494354505-76319364.1488584191
2017-05-09 14:32:25 -07:00
Michael Klishin
6e333bb563 Merge pull request #154 from haines/fix-clojure-1.9-warning
Exclude clojure.core/any? to prevent warnings on Clojure 1.9
2017-02-10 19:04:48 +03:00
Andrew Haines
1ca1469126 Exclude clojure.core/any? to prevent warnings on Clojure 1.9 2017-02-10 15:21:02 +00:00
Michael Klishin
f3d8a7bb71 Merge pull request #153 from eunmin/add-affected-count
Add affected-count function for WriteResult
2017-01-11 13:09:46 +08:00
eunmin
99a113e220 Add affected-count function for WriteResult 2017-01-11 13:45:49 +09:00
Michael Klishin
c1acd78060 Merge pull request #150 from frooeyzanny/fix-pullAll-example
Fix $pullAll example
2016-11-20 19:44:11 +03:00
Michael Klishin
62dc2a9cd3 Merge pull request #149 from frooeyzanny/fix-subtract-operator
substract -> subtract
2016-11-20 19:43:54 +03:00
Michael Klishin
5b5425c402 Merge pull request #144 from caligin/master
fix: missing overload in :arglists, was causing eastwood to complain about correct calls
2016-11-20 19:43:27 +03:00
Michael Klishin
34671dcd5d Merge pull request #148 from jokimaki/close-stream-on-persist
Close GridFSInputFile input stream on persist
2016-11-20 19:43:03 +03:00
Juha Jokimaki
1170f342dd Delegate stream creation to GridFS 2016-11-20 18:03:11 +02:00
Evgeny Samsonov
27ed7bdfb7 Fix pullAll example 2016-11-02 18:14:31 +03:00
Evgeny Samsonov
517bb98129 substract -> subtract 2016-11-02 18:00:05 +03:00
Juha Jokimaki
b1cfb5490a Set GridFSInputFile closeStreamOnPersist flag 2016-10-31 08:52:14 +02:00
Michael Klishin
f499079bf7 Merge pull request #147 from jokimaki/operators
Add missing operators
2016-10-30 22:52:35 +03:00
Juha Jokimaki
0d7dc9357a Add $isolated operator 2016-10-30 18:15:51 +02:00
Juha Jokimaki
82c76dd66d Add $eq operator 2016-10-30 18:06:49 +02:00
Juha Jokimaki
2021c6d07f Fix $ne operator usage
The flaw was exposed when the test name was fixed.
2016-10-30 17:49:32 +02:00
Juha Jokimaki
3d4a38a10a Fix test name to match what is tested 2016-10-30 17:31:16 +02:00
Juha Jokimaki
8fd4946959 Add $where operator 2016-10-30 17:21:15 +02:00
Juha Jokimaki
08ce1e41b3 Add missing geospatial operators 2016-10-30 16:54:46 +02:00
Juha Jokimaki
a2bc59dcfa Test that every query operator is defined 2016-10-30 16:52:52 +02:00
Michael Klishin
d0fc0ed528 alpha13 is out 2016-10-10 00:17:01 +03:00
Fulvio Meden
57464ac592
fix: missing overload in :arglists, was causing eastwood to complain about correct calls 2016-10-04 14:24:19 +01:00
Michael Klishin
0f2a44179d
3.1.0 is out 2016-09-17 03:29:39 +03:00
Michael Klishin
7721c83ccf
Update change log 2016-09-17 03:29:21 +03:00
Michael Klishin
c374e7593b
Back to dev version 2016-09-17 03:28:45 +03:00
Michael Klishin
3e5f16d146
3.1.0 2016-09-17 03:27:10 +03:00
Michael Klishin
be95971e58
Bump MongoDB Java client to 3.3.0 2016-09-17 01:33:41 +03:00
Michael Klishin
2f19f62e3f Depend on Clojure 1.8, test against 1.9 previews 2016-08-20 09:35:09 +03:00
Michael Klishin
668e46d57f Merge pull request #141 from eunmin/add_currentDate_operator
Add currentDate operator
2016-08-19 08:41:29 +03:00
eunmin
df09c4085d Add operator 2016-08-19 14:19:50 +09:00
Michael Klishin
5033018119 Merge pull request #140 from eunmin/master
Add missing MongoClientOptions
2016-07-07 15:32:20 +03:00
eunmin
ccffffc912 Add missing MongoClientOptions 2016-07-07 21:17:59 +09:00
Michael Klishin
9be707ea06 Merge pull request #135 from kronos/master
Fix keywordize param for find-map-by-id
2016-04-27 11:06:36 -05:00
Samsonov Ivan
2b4c0f8168 Fix keywordize param for find-map-by-id 2016-04-26 19:03:44 +03:00
Michael Klishin
f64d085b0f Merge pull request #133 from divs1210/master
Fix reflection warnings.
2016-04-07 14:55:33 +03:00
Divyansh Prakash
5916642b2b Fix reflection warnings. 2016-04-07 16:52:02 +05:30
Michael Klishin
07b63150d1 Test against Clojure 1.8.0 2016-03-31 02:55:15 +03:00
Michael Klishin
e842068f3e Merge pull request #132 from tuhlmann/master
Fixing call to find-map-by-id, threw a ClassCastException
2016-03-27 19:34:50 +03:00
Torsten Uhlmann
9d51f32fa1 Fixing call to find-map-by-id, threw a ClassCastException
Fixes #131
2016-03-27 13:07:38 +02:00
Michael Klishin
765b9d1acf Update change log 2016-01-16 14:31:27 +03:00
Michael Klishin
c54f70350e Merge branch 'boechat107-typehint' 2016-01-16 14:28:52 +03:00
Michael Klishin
c7a87ac776 Merge branch 'typehint' of https://github.com/boechat107/monger into boechat107-typehint 2016-01-16 14:25:50 +03:00
Andre Ambrosio Boechat
bdecd98b40 with-collection macro: type hints improvement
From all the resources I found about type hinting in macros,
it doesn't work like it does for normal functions.

I got reflection warnings for a code like this:

```clj
(let [conn (mg/connect)
      db (delay (mg/get-db conn "monger-test"))]
  (with-collection @db "something"
    (find {})))
```

The type hint for `db` didn't work. Actually the type hint that works
comes from the function `core/get-db` and we see this when we remove
`delay` from the code above. As we could expect, the function `deref`
doesn't propagate the type hint.

I did similar tests with the collection name and no reflection warning
was raised for any case. In addition, it looked weird for me to have
a type hint like `^String` and then a checking like `string?` later.

Some references:

* http://stackoverflow.com/questions/11919602/generating-clojure-code-with-type-hints
* Clojure High Performance Programming, page 44.
2016-01-15 15:47:47 +01:00
Michael Klishin
189d347f50 Merge branch '3.0.x-stable' 2016-01-10 23:46:23 +03:00
Michael Klishin
114630f769 Back to dev version 2016-01-10 23:44:39 +03:00
Michael Klishin
6c25763748 3.0.2 2016-01-10 23:44:39 +03:00