Commit graph

517 commits

Author SHA1 Message Date
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
Greg Weber
c835d87a66 Cabal-version: >= 1.6 2014-07-19 19:13:28 -07:00
Greg Weber
357b308807 Merge pull request #5 from mongodb-haskell/find-and-modify-opts
Find and modify opts
2014-07-19 17:54:53 -07:00
Greg Weber
c969c2cc46 version bump for findAndModifyOpts 2014-07-08 12:44:56 -07:00
Greg Weber
9259d392d3 add findAndModifyOpts
supports the full range of optiosn for findAndModify
2014-07-08 12:44:41 -07:00
Greg Weber
06dab9de7c Merge pull request #4 from knsd/feature/docs
Make examples compilable
2014-07-06 22:14:49 -07:00
Fedor Gogolev
1e861c2496 Make examples compilable 2014-07-07 09:05:03 +04:00
Greg Weber
6b35ee511c Merge pull request #3 from knsd/feature/links
Update links to repository in README and .cabal
2014-07-06 22:01:58 -07:00
Fedor Gogolev
20454a2bb7 Update links to repository in README and .cabal 2014-07-07 08:51:06 +04:00
Greg Weber
20bd38d712 ignore cabal sandbox 2014-06-22 17:58:52 -07:00
Greg Weber
6e4c31c90e release mongoDB 2.0 2014-06-22 17:58:34 -07:00
Fedor Gogolev
5ca3b1c210 Fix merge conflict 2014-04-12 17:17:47 +04:00
Fedor Gogolev
adb57dce72 Merge branch 'pr-20'
Conflicts:
	Database/MongoDB/Query.hs
2014-04-12 17:06:52 +04:00
Sergei Lebedev
4cc68400bf Merge pull request #22 from spl/patch-1
Link 'find' and 'delete' in 'select' documentation
2014-03-09 19:34:24 +03:00