Commit graph

580 commits

Author SHA1 Message Date
Greg Weber
1e84ac0d3c Merge pull request #29 from VictorDenisov/master
Retrieve another batch for next in case of unlimited request
2015-09-30 04:13:55 -07:00
Victor Denisov
75470af421 Retrieve another batch for next in case of unlimited request 2015-09-29 22:42:22 -07:00
Victor Denisov
bbba3f37ea Add test for rest function 2015-09-29 22:42:22 -07:00
Victor Denisov
f3353c94ef Use sandboxes for package build
Installation of cabal and hpc may cause dependency conflicts.
2015-09-04 12:05:35 -07:00
Victor Denisov
fff024b135 Bump version 2015-09-04 11:03:54 -07:00
Greg Weber
23784db8df Merge pull request #28 from VictorDenisov/master
Fix slow requests to the database server
2015-08-31 20:57:31 -07:00
Victor Denisov
68ed7beb56 Remove unused writeLazy 2015-08-31 18:04:00 -07:00
Victor Denisov
0306ea9c21 Increase default stack size for test 2015-08-30 14:51:22 -07:00
Victor Denisov
1373e6303f Add note to the chagelog 2015-08-29 22:37:05 -07:00
Victor Denisov
e45d9329e9 Address performance issues with insert
Compile notices and request into one strict string for performance
boost.
2015-08-29 22:37:05 -07:00
Victor Denisov
79b88ddeb5 Add benchmark for inserts 2015-08-29 22:36:58 -07:00
Victor Denisov
6d3f617dd2 Add changelog and bump version 2015-08-02 10:15:11 -07:00
Greg Weber
f385dade31 Merge pull request #25 from VictorDenisov/master
Handle the case when mongodb returns less documents than cursor reque…
2015-07-31 17:59:04 -07:00
Victor Denisov
dca5ae051a Apply reviewer's comments 2015-07-31 03:25:01 -07:00
Victor Denisov
0038e4163c Add big test 2015-06-20 21:14:26 -07:00
Victor Denisov
5e72c8ad61 Handle the case when mongodb returns less documents than cursor requested
If we request certain amount of values from a cursor the mongo db server can
return less than requested. So, if we provide -100000 then mongodb may
return 97899 and close the cursor.

Instead of relying on negative values this implementation will use only
positive numbers and will close the cursor itself as soon as the driver
receives enough results.

It fixes the issue #24 from github.
2015-06-19 18:23:44 -07:00
Greg Weber
bcce3704d9 Merge pull request #26 from Feeniks/index-expireAfterSeconds
Support for TTL
2015-06-19 09:48:24 -07:00
Ralph Morton
9087719087 Support for TTL 2015-06-19 18:26:38 +02:00
Greg Weber
cb912cb952 version bump for export of MongoContext constructor 2015-05-16 09:43:05 -07:00
Greg Weber
15b14c0acb Merge pull request #21 from mschristiansen/patch-2
Remove Control.Applicative imports and tab character
2015-05-16 11:40:11 -05:00
Mikkel Christiansen
f69440d7fa Remove applicative import warnings in GHC 7.10.1. 2015-05-15 15:26:34 +02:00
Greg Weber
1438926c31 Merge pull request #20 from mschristiansen/patch-1
Export MongoContext constructor
2015-05-15 07:34:27 -05:00
Mikkel Christiansen
6d877b4da2 Change all instances of myPipe, etc. to mongoPipe, etc. 2015-05-15 09:58:25 +02:00
Mikkel Christiansen
78c0619e02 Export MongoContext constructor
I have a reader monad with app configuration that I would like to make an instance of HasMongoContext and then need the MongoContext constructor to add a MongoContext to my own reader monad.
2015-05-14 14:53:08 +02:00
Greg Weber
64215c59a7 Merge pull request #15 from docmunch/aggregate-test
Add aggregate test
2015-03-22 13:48:34 -07:00
Sean Leather
77cde91c61 Add aggregate test 2015-03-22 19:55:01 +02:00
Sean Leather
6fd7c099a5 Install the dependencies for all packages 2015-03-22 19:02:20 +02:00
Sean Leather
8cfcb3894a Refactor to reduce duplicate code 2015-03-21 19:46:08 +02:00
Greg Weber
bcf0fa8495 Merge pull request #17 from docmunch/add-multi-ghc-travis
Use multi-ghc-travis
2015-03-21 10:39:04 -07:00
Sean Leather
c332becbb3 Use hvr/multi-ghc-travis to test multiple platforms
Note the comments regarding decisions to be made if you want to use various
features of this .travis.yml carried over from the previous version.
2015-03-21 14:00:39 +02:00
Sean Leather
d548af688e FlexibleContexts required for GHC 7.10 2015-03-21 13:53:16 +02:00
Greg Weber
4eb328e9b2 rename to ConnectionSpec 2015-03-05 12:21:41 -08:00
Greg Weber
c493f8f7b1 version bump for new Connection module 2015-03-05 12:17:45 -08:00
Greg Weber
ab123e55d8 Merge pull request #14 from mongodb-haskell/connection
Connection
2015-03-05 12:12:55 -08:00
Greg Weber
91701962c3 fix ActionWith usage 2015-03-05 12:00:01 -08:00
Greg Weber
98bcc2dfe8 abstract connection interface
rebase #13 to master
2015-03-05 11:21:58 -08:00
Greg Weber
a77370f2d9 Merge pull request #8 from fujimura/add-tests
Add tests for insert operations
2015-03-05 11:13:33 -08:00
Greg Weber
98a479dacb Merge pull request #11 from Cipherwraith/patch-1
Update tutorial.md
2015-01-10 08:13:58 -08:00
Ron
2186eeeafe Update tutorial.md
Data.CompactString is no longer needed in ghci.

`runIOE` has been deprecated. Everything now works without runIOE.
2015-01-10 18:33:00 +08:00
Fujimura Daisuke
7354bf0ada Minor code format fix 2014-08-19 21:30:07 +08:00
Fujimura Daisuke
3dd594999a Rename fakeDB to db 2014-08-19 21:29:18 +08:00
Fujimura Daisuke
c6d6f8c71a Minor refactor
Use `shouldReturn`
2014-08-19 12:59:48 +08:00
Fujimura Daisuke
70e8cbc9c2 Add tests for insert operations 2014-08-19 12:59:48 +08:00
Fujimura Daisuke
b88ef1cc92 Measure code coverage with coveralls.io 2014-08-19 12:48:39 +08:00
Fujimura Daisuke
38b65f35dc Update travis.yml to use mongodb 2014-08-19 12:48:39 +08:00
Fujimura Daisuke
f6d886e8bd Reorganize specs 2014-08-19 12:48:36 +08:00
Greg Weber
4696355085 add test suite 2014-08-07 09:10:06 -07:00
Greg Weber
a047c309e5 better findAndModify error handling 2014-07-24 08:12:44 -07:00
Greg Weber
f2a6307530 repsert -> upsert 2014-07-24 08:12:15 -07:00
Greg Weber
d2d4f9534c export defFamUpdateOpts 2014-07-19 19:32:33 -07:00