Commit graph

235 commits

Author SHA1 Message Date
Amit Aryeh Levy
5ce857a4db Make sure 7.6 modifications stil compile with 7.4 2012-10-23 16:49:29 -04:00
Amit Aryeh Levy
ed0c264a35 GHC 7.6 Support
lifted-base no longer contains addMVarFinalizer
2012-10-19 02:29:10 -07:00
Sergei Lebedev
bbe6138fea Merge pull request #4 from snoyberg/master
GHC 7.6 support
2012-09-11 09:45:00 -07:00
Michael Snoyman
681f9f875f GHC 7.6 support 2012-09-10 20:25:45 +03:00
Fedor Gogolev
4ae4f793e3 Function eval returns Val v instead of Document
Fixes #1
2012-07-09 08:26:58 +04:00
Fedor Gogolev
a6ecd104f7 Updated homepage 2012-06-11 00:28:27 +04:00
Fedor Gogolev
a0f0f04d8b Updated maintainer field 2012-06-11 00:27:27 +04:00
Fedor Gogolev
b11c01fc00 Specified required bson version to 0.2.* 2012-06-11 00:26:56 +04:00
Fedor Gogolev
8a02b8056e Improved cabal-file readability 2012-06-11 00:26:36 +04:00
Fedor Gogolev
dd6a3010f6 Cleaned up imports 2012-06-10 23:47:14 +04:00
Fedor Gogolev
17f528e835 Use text instead of compact-string-fix 2012-05-08 19:13:25 +04:00
Tony Hannan
3f3cd028da Merge pull request #20 from yesodweb/fno-warn-orphans
Fno warn orphans
2012-02-29 12:06:47 -08:00
Greg Weber
3c77f29e83 ignore dist/ 2012-02-29 11:36:14 -08:00
Greg Weber
b706780844 use -fno-warn-orphans 2012-02-29 11:35:55 -08:00
Tony Hannan
a618ebbf95 Merge pull request #16 from A1kmm/master
Add routedHost as an alternative to primary / secondaryOk that lets the user supply their own sort function
2012-02-20 08:10:33 -08:00
Andrew Miller
d3f54922cc Add routedHost as an alternative to primary / secondaryOk that lets the user supply their own sort function. This is useful for applications like preferentially connecting to the host or secondary that is geographically the closest. 2012-02-12 17:34:07 +13:00
Tony Hannan
5e015dc769 Merge pull request #14 from yesodweb/show-AccessMode
show instance for AccessMode
2012-01-28 15:50:53 -08:00
Greg Weber
6ef19663cf show instance for AccessMode 2012-01-27 12:48:54 -03:00
Tony Hannan
2f23e78c28 Use MVar from lifted-base 2012-01-23 20:45:10 -05:00
Tony Hannan
d0aeb42e7c merge duplicate code 2012-01-23 19:45:42 -05:00
Tony Hannan
b8f25ad6f0 bump version for latest lifted-base 2012-01-23 19:14:36 -05:00
Tony Hannan
5c2a296fa1 Merge pull request #12 from mkscrg/master
Fix for tailable cursor
2012-01-23 16:11:43 -08:00
Michael S. Craig
fa95b65fad Fix for bad behavior when using TailableCursor.
`Database.MongoDB.Query.next` and `nextBatch` prefetch a promise of the next
batch of documents from the server whenever the current batch has been
exhausted. The following call to `next` or `nextBatch` fulfills that promise
(thereby turning it into a concrete batch of documents) and then returns one or
more documents in the batch.

The old behavior was to raise an exception if an empty batch with a nonzero
cursor ID was encountered. This is normal when using tailable cursors, so a
change was required.

Now, `Nothing` is returned with the still-live cursor ID, instead of raising
the exception. Also, prefetched empty batches with nonzero cursor IDs are
refetched once per call to avoid stale data.

This new prefetching behavior does not affect the performance of `next`, except
when calling it repeatedly on a tailable cursor with no new data. In those
(generally avoidable) cases, each call to `next` results in two server calls
instead of one.
2011-12-13 11:02:57 -05:00
Tony Hannan
6faad5d866 Merge pull request #9 from alphaHeavy/monad-control
Updating to monad-control-0.3, with help from Bas van Dijk.
2011-12-06 15:17:06 -08:00
Nathan Howell
b18f81f431 Updating to monad-control-0.3, with help from Bas van Dijk.
Conflicts:

	Database/MongoDB/Query.hs
2011-12-05 09:23:39 -08:00
Tony Hannan
d506011cd1 fix some warnings. bump version for previous 7.2.1 compatibility fix 2011-11-10 10:23:07 -05:00
Tony Hannan
9dae52a374 Merge pull request #7 from ryantrinkle/master
Fixed brokenness in 7.2.1 (field labels for RecordWildCards must be in scope)
2011-10-28 08:50:18 -07:00
Ryan Trinkle
ccd217053b fix missing record field in P.Request value
the fields of a Database.MongoDB.Internal.Protocol.Query were not filled in by RecordWildcard on line 411 of Database/MongoDB/Query.hs because the record fields were not in scope
2011-10-27 15:24:37 -04:00
Tony Hannan
889aaba0f8 fix typo in article 2011-09-12 10:46:24 -04:00
Tony Hannan
bc3866b79c new version using MonadControlIO instead of custom MonadMVar 2011-09-08 18:56:38 -04:00
Tony Hannan
747fd0ae87 fix typo in previous merge 2011-09-07 23:51:57 -04:00
Tony Hannan
efb6b65506 QueryFailure error code 2011-09-07 12:09:20 -04:00
Tony Hannan
81c4f95d5a Merge pull request #4 from yesodweb/master
Use MonadControlIO instead of custom MonadMVar
2011-09-07 09:07:07 -07:00
Michael Snoyman
a320c363e4 Move to monad-control 2011-08-25 16:29:39 +03:00
Tony Hannan
4307fea5aa collect ids from insert lazily in case not used 2011-08-18 19:41:32 -04:00
Tony Hannan
35801ef052 small edit to slides 2011-07-30 13:12:12 -04:00
Tony Hannan
e152f5b69b use ExtendedDefaultRules in example 2011-07-30 12:49:37 -04:00
Tony Hannan
c2ca221a6c Intro to MongoDB slides 2011-07-28 10:45:10 -04:00
Tony Hannan
dad5134863 remote ghc-option -O because Cabal does it 2011-07-22 10:58:56 -04:00
Tony Hannan
c99cb54251 Partial results option 2011-07-22 10:38:50 -04:00
Tony Hannan
17ceb53234 tailable cursor 2011-07-22 10:31:24 -04:00
Tony Hannan
58f83838de Cursor nextBatch 2011-07-21 18:50:52 -04:00
Tony Hannan
5e4a8aee3f insertAll (KeepGoing) 2011-07-21 16:39:19 -04:00
Tony Hannan
19da43a348 connect timeout 2011-07-21 11:27:19 -04:00
Tony Hannan
9d2f09a91e small edit to article 2011-07-19 14:43:53 -04:00
Tony Hannan
66d7bd3ef6 small edit to article 2011-07-19 11:02:23 -04:00
Tony Hannan
61ba31b668 small edit to article 2011-07-19 10:59:38 -04:00
Tony Hannan
a1ed175bc2 small edit to article 2011-07-18 16:33:12 -04:00
Tony Hannan
82a846e918 small edit to article 2011-07-18 16:00:02 -04:00
Tony Hannan
f8b8886f53 small edit to article 2011-07-18 15:46:40 -04:00