Michael Klishin
b5fd0a2738
More test massaging for MongoDB server 5.x
2022-04-23 21:29:45 +04:00
Michael Klishin
30cd472e23
Remove a test ns that needs reworking for MongoDB 5.x
2022-04-23 21:10:47 +04:00
Oscar Korz
ab878ab69c
Add uuid-representation option
2022-04-02 15:44:44 -07:00
Michael Klishin
1fdd62d3df
Merge pull request #186 from geuscht-m/improve-distinct-tests
...
Add missing test case for distinct tests
2020-08-10 00:46:12 +03:00
Aleksander Eskilson
37aabbe860
testing over non-objects
2020-08-09 16:03:39 -05:00
Aleksander Eskilson
010a977aac
adding mongo options
2020-08-09 16:01:20 -05:00
Timo Geusch
ce6dcd27cb
Added test case for distinct to exercise non-query distinct API
...
The existing test cases only covered the form (distinct ... :field
{query}). This chance adds a test for the non-query form also.
2019-04-24 14:06:16 -07:00
Chris Broome
9d34fc0231
Throw IllegalArgumentException when database name not in uri
2018-12-04 21:20:25 -05:00
Chris Broome
aa08f4b58c
Add more descriptive error message when uri has no db name
2018-12-03 22:12:45 -05:00
Michael Klishin
386f06da8c
Update dependencies, adapt to new core.cache and Ragtime APIs
2018-12-02 21:24:29 +03:00
Michael Klishin
ba00ba27a5
Encode this slash in URI
2018-12-02 21:24:05 +03:00
Michael Klishin
ad2ee531a3
$pushAll is gone, replaced by $push + $each
...
See https://docs.mongodb.com/v3.2/reference/operator/update/each/#up._S_each .
2018-12-02 21:23:20 +03:00
Vladyslav Aleksakhin
7466db5c4d
Add :keywordize option for aggregate that control if resulting map keys will be turned into keywords, default is true.
2018-05-02 11:07:31 +02:00
冯忠孝
5d31f9fc1a
support java Bigdecimal in mongodb 3.4 or later
2017-11-18 11:31:45 +08:00
eunmin
99a113e220
Add affected-count function for WriteResult
2017-01-11 13:45:49 +09:00
Juha Jokimaki
b1cfb5490a
Set GridFSInputFile closeStreamOnPersist flag
2016-10-31 08:52:14 +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
a2bc59dcfa
Test that every query operator is defined
2016-10-30 16:52:52 +02: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
189d347f50
Merge branch '3.0.x-stable'
2016-01-10 23:46:23 +03:00
Michael Klishin
45cb68115b
Upgrade Java client to 3.2.0
2016-01-10 23:44:39 +03:00
Juho Teperi
cf3d8f2ad3
Fix test cases cases trying to compare db-objects and maps
2015-10-09 00:48:57 +03:00
Juho Teperi
15edf63ffd
Fix test cases with bad = forms
2015-10-09 00:24:29 +03:00
Juho Teperi
c26ae0835d
Optimize from-db-object performance for DBObjects
...
Creating temporary sequence from DBObject is quite slow. Using
.keySet for reduce collection and calling .get inside reduce is
considerably faster. The common code between Map and DBObject
implementations can't be shared as reflection would completely kill the
performance and function can't be type hinted as DBObject doesn't
implement Map interface.
Added a simple test case for the from-db-object performance. I'm seeing
performance increase of 20% on this (170ms -> 140ms).
2015-10-08 22:59:47 +03:00
Juho Teperi
fe73144075
Fix map comparisons and rename test case
...
Two tests had the same name so only the latter was ran
2015-10-08 22:42:06 +03:00
Andrei Biasprozvanny
ebc01b3f54
Find-maps now supports keywordize option
2015-08-25 16:48:17 +01:00
Erik Bakstad
43994ff19a
Failing test that calls removed MongoClientOptions.Builder methods
2015-07-22 21:36:42 +02:00
Michael Klishin
c1597b1c9a
Make this test order independent
2015-07-16 23:38:08 +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
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
Joshua Karstendick
d337cd1546
added failing unit test
2015-06-23 17:21:05 -04:00
Tom McMillen
602b6e3ce9
Add JSON serialization of BSONTimestamp
2015-05-17 13:27:40 -07: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
26be7bb1b9
Make command-test pass
2015-05-11 01:19:47 +03:00
Michael Klishin
07a9c5ee16
Silence MongoDB Java driver logger
2015-05-11 00:15:56 +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
25c1c56fc9
This DFRef ctor was removed
2015-02-21 12:20:06 +03:00
Michael Klishin
2d58b02b13
Upgrade to MongoDB 2.13.0
2015-02-21 12:10:01 +03:00
Robin Heggelund Hansen
1c62587165
Fixes #77 : Add update-by-ids function to mongo.collection
2014-10-21 06:06:06 +02:00
Robin Heggelund Hansen
696a5ad8e3
Added tests for 'update' functions
2014-10-21 05:59:28 +02:00
Juha Jokimäki
2c019e5e91
Support for $each modifier
2014-07-18 14:47:37 +03:00
Michael Klishin
f846cd0a51
Make mongo-options take a map instead of pseudo-kwards, extract mongo-options-builder
2014-06-15 17:39:32 +04:00
Michael Klishin
40bc1861a7
Cosmetics
2014-05-29 01:27:58 +04:00