Commit graph

1111 commits

Author SHA1 Message Date
Michael Klishin
2cd8c0c6a0 Back to dev version 2015-06-27 23:08:46 +03:00
Michael Klishin
ceed6f85c5 3.0.0-rc2 2015-06-27 23:06:48 +03:00
Michael Klishin
4ff7d05aa4 monger.credentials/for => monger.credentials/create
To make sure we don't shadow clojure.core/for when monger.credentials
is required with :refer :all.
2015-06-27 22:39:01 +03:00
Michael Klishin
b762c1875f Bump Java driver to 3.0.2 2015-06-27 22:13:23 +03:00
Bartek Marcinowski
15f50408a9 Merge branch 'add_options_to_aggregate'
Merge implementation of aggregation framework options and explanation of
aggregation query plan.

Conflicts:
	src/clojure/monger/collection.clj
2015-06-24 16:05:47 +01:00
Bartek Marcinowski
f0946acd75 Enable query plan explanation for the aggregation framework
Add the explain-aggregate function, which returns a map containing
information about the given aggregation query.
2015-06-24 15:51:24 +01:00
Bartek Marcinowski
136dea00b2 Add allow-disk-use and cursor options to aggregate
Reimplement aggregate on top of the Java driver's DBCollection#aggregate
in order to return a cursor for the results. This allows users to
overcome the 16MB result size limit and specify the cursor batch size.
The allowDiskUse can also be passed to Mongo, through the allow-disk-use
key. The maxTime option enables setting a limit (in milliseconds) on the
execution time of the query, through the max-time key.
2015-06-24 15:47:46 +01:00
Michael Klishin
3a4de68dd4 Merge pull request #105 from karstendick/fix/ensure-index-name
Fix 5-arity ensure-index by renaming `name` argument
2015-06-24 07:41:01 +03:00
Joshua Karstendick
9c0f385ab2 Fixes a bug with the 5-arity ensure-index function. The argument
named `name` shadowed clojure.core/name, so trying to call `name`
as a function on line 426 throws an exception. Fixes the bug by
renaming the argument to `index-name`.
2015-06-23 17:21:12 -04:00
Joshua Karstendick
d337cd1546 added failing unit test 2015-06-23 17:21:05 -04:00
Michael Klishin
94029c7f6c Support aggregation options, closes #102 2015-06-23 22:01:06 +03:00
Michael Klishin
aeab2851c1 Merge pull request #104 from kronos/master
Connect via uri in core/connect if it is passed
2015-06-16 00:54:26 +03:00
Ivan Samsonov
126c9f8503 Connect via uri in core/connect if it is passed
core/connect ignores :uri key and tries to connect 127.0.0.1:27017 instead.
Patch fix this behaviour by checking uri key existance and trying to connect
by uri if it's provided.
2015-06-15 02:45:11 +03:00
Michael Klishin
6e41cb94d8 Link to MongoDB Java driver 3.0 2015-06-15 01:32:49 +03:00
Michael Klishin
3edc8049db README updates 2015-06-14 02:09:06 +03:00
Michael Klishin
e76dc21182 3.0.0-rc1 is out 2015-06-14 02:08:11 +03:00
Michael Klishin
d80a2766ee Back to dev version 2015-06-13 22:17:06 +03:00
Michael Klishin
2eb6f80ae8 3.0.0-rc1 2015-06-13 19:47:52 +03:00
Michael Klishin
eb168b6830 2.1.0 is out 2015-06-07 15:12:23 +03:00
Michael Klishin
4701a7b5ab Merge pull request #101 from michaelklishin/issue-99
Update license headers
2015-06-06 19:15:50 +03:00
Michael Klishin
a2b1ddb054 Update license headers 2015-06-06 19:15:01 +03:00
Michael Klishin
4e0a0036e6 Begin preparing change log for 3.0 2015-05-20 01:13:03 -07:00
Michael Klishin
5651c2ee97 This is no longer necessary
Since we no longer support Clojure 1.3.
2015-05-18 06:33:16 -07:00
Michael Klishin
3660992148 Update ChangeLog.md 2015-05-17 13:28:22 -07:00
Tom McMillen
602b6e3ce9 Add JSON serialization of BSONTimestamp 2015-05-17 13:27:40 -07:00
Michael Klishin
3e71b6ffc7 Commit monger.credentials 2015-05-17 18:53:14 +03:00
Michael Klishin
4efdaa28c9 Ignore nREPL files 2015-05-17 18:53:08 +03:00
Michael Klishin
8b2fd956e4 Rework authentication for the 3.0 client and multiple server versions
When authentication failures, MongoDB Java client throws a timeout
exception whose cause is a failed command exception which carries
a reason. Still not great at authentication failure notification.
2015-05-17 18:51:44 +03:00
Michael Klishin
6ca5b9d4ba monger.search is gone
Full text search in 3.0 is supported via regular queries
with the $text operator.
2015-05-16 15:38:41 +03:00
Michael Klishin
a8d42a62f5 Adapt this test for 3.0 2015-05-11 01:42:01 +03:00
Michael Klishin
a107f1f8b7 Adapt for Java driver 3.0 2015-05-11 01:36:24 +03:00
Michael Klishin
3c63209ab1 Make sure hint isn't set to nil
MongoDB 3.0 is not as lenient about it.
2015-05-11 01:20:56 +03:00
Michael Klishin
05dd57731a Adapt to 3.0 2015-05-11 01:20:18 +03:00
Michael Klishin
26be7bb1b9 Make command-test pass 2015-05-11 01:19:47 +03:00
Michael Klishin
2be051289f Use GA version of the Java driver 2015-05-11 01:19:31 +03:00
Michael Klishin
096ba46bcd Ignore todo.org 2015-05-11 00:16:18 +03:00
Michael Klishin
07a9c5ee16 Silence MongoDB Java driver logger 2015-05-11 00:15:56 +03:00
Michael Klishin
49cb195e5a Adapt before_script.sh to createUser in 3.0 GA 2015-05-11 00:04:31 +03:00
Michael Klishin
7c31e98cf3 addUser is superceded by createUser 2015-02-22 19:28:11 +03:00
Michael Klishin
0b72761b44 Adapt monger.{core,collection} and tests to recent changes
Down to 50 failures and 11 errors in `lein test`.
2015-02-22 19:26:27 +03:00
Michael Klishin
8511d3714d Reduce monger.result to two functions: acknowledged? and
`updated-existing?`

`ok?` and other variations are now all superceded by `acknowledged?`,
`WriteConcern/ACKNOWLEDGED` is the recommended way of ensuring safe
writes.
2015-02-22 19:24:51 +03:00
Michael Klishin
d9e6be671a Monger's DBRef cannot work with com.mongodb.DBRef without fundamental re-thinking
com.mongodb.DBRef#fetch was removed.
2015-02-22 19:24:10 +03:00
Michael Klishin
2128f2cd6c getLastError is gone in the 3.0 driver 2015-02-22 18:52:31 +03:00
Michael Klishin
bb626c5320 Don't run CI against this WIP branch 2015-02-21 17:47:23 +03:00
Michael Klishin
25c1c56fc9 This DFRef ctor was removed 2015-02-21 12:20:06 +03:00
Michael Klishin
e7755b3fc5 Use Java driver 3.0.0-beta2 2015-02-21 12:19:49 +03:00
Michael Klishin
cd4326ca69 Next release will be 3.0 2015-02-21 12:17:49 +03:00
Michael Klishin
9cb54167c4 2.1.0 2015-02-21 12:16:08 +03:00
Michael Klishin
732bdb40e0 Update change log 2015-02-21 12:10:44 +03:00
Michael Klishin
2d58b02b13 Upgrade to MongoDB 2.13.0 2015-02-21 12:10:01 +03:00