Victor Denisov
d963d89c0b
Fix documentation for access function
2017-05-06 23:55:27 -07:00
Victor Denisov
4855793dd7
Rewrite updateBlock
2017-05-01 21:47:40 -07:00
Victor Denisov
1d6d6ca9c0
Rewrite deleteBlock
2017-04-09 22:23:34 -07:00
Victor Denisov
d6419daa50
Move WriteConcernError to Failure
2017-04-09 20:43:55 -07:00
Victor Denisov
2a5bfa44e2
Handle unknown documents in insertMany reply
2017-04-09 20:43:55 -07:00
Victor Denisov
48d8dba4e1
Add compound failure
2017-04-09 20:43:55 -07:00
Victor Denisov
7ae65ce487
Assign ids before insert block
2017-04-09 20:43:55 -07:00
Victor Denisov
b6078cc19d
Wrap lines
2017-04-09 20:43:54 -07:00
Victor Denisov
173e90eb90
Don't run ...Many tests against mongo 2.4
2017-04-09 20:43:54 -07:00
Victor Denisov
e2e9f12af8
Adjust index for updateBlock results
2017-04-09 20:43:54 -07:00
Victor Denisov
f57ac94a3b
Drop support of mongo 2.6 in updateMany and deleteMany
2017-04-09 20:43:54 -07:00
Victor Denisov
dad19515de
Keep old behavior of delete command
2017-04-09 20:43:54 -07:00
Victor Denisov
d1d5f84b22
Keep old behavior of update
2017-04-09 20:43:54 -07:00
Victor Denisov
6a13bde01b
Set proper index for exception
2017-04-09 20:43:54 -07:00
Victor Denisov
6013272c5d
Rewrite delete comand using interruptible for
2017-04-09 20:43:54 -07:00
Victor Denisov
8db991bb5d
Rewrite deleteBlock using WriteResult
2017-04-09 20:43:54 -07:00
Victor Denisov
09c05d4b69
Rename UpdateResult to WriteResult
...
Many fields of DeleteResult overlap with UpdateResult.
It's better to have only one result for all results, just
like it's done in c mongodb driver.
2017-04-09 20:43:54 -07:00
Victor Denisov
569d8ccc08
Fix list append complexity issue
2017-04-09 20:43:54 -07:00
Victor Denisov
eeb0c7981d
Edit comments slightly
2017-04-09 20:43:54 -07:00
Victor Denisov
80ebc6f756
Throw exception when insertAll encounters big doc
...
- insertAll should throw an exception if it encounters a document
too big for one message. However all other documents will be inserted.
- slightly edit docs
2017-04-09 20:43:54 -07:00
Victor Denisov
bedaa744ba
Add indexes to error reporting
2017-04-09 20:43:54 -07:00
Victor Denisov
86f782db72
Insert remaining values in insertAll and then throw exception
2017-04-09 20:43:54 -07:00
Victor Denisov
139a17248f
Fix tests
2017-04-09 20:43:54 -07:00
Victor Denisov
a828806940
Indent several lines
2017-04-09 20:43:54 -07:00
Victor Denisov
af49f43027
Fix splitAtLimit
2017-04-09 20:43:54 -07:00
Victor Denisov
e586fd51cc
some minor fixes
2017-04-09 20:43:54 -07:00
Victor Denisov
460c7e735b
User WriteFailure instead of WriteError
2017-04-09 20:43:54 -07:00
Victor Denisov
c6bd17f1f4
Replace IORefs with interruptibleFor
2017-04-09 20:43:54 -07:00
Victor Denisov
d9db9bca52
Add declaration of interruptibleFor function
2017-04-09 20:43:54 -07:00
Victor Denisov
316ae02ecc
Handle errors properly for ordered updates
2017-04-09 20:43:54 -07:00
Victor Denisov
f81d5ec42e
Handle exceptions in updateBlock
2017-04-09 20:43:54 -07:00
Victor Denisov
692cdb94c7
Mark update command as failed if there are write concern errors
2017-04-09 20:43:54 -07:00
Victor Denisov
6fe3cd982d
Fix unit tests
...
updateMany and updateAll don't throw exceptions.
They return UpdateResult which reports errors.
2017-04-09 20:43:54 -07:00
Victor Denisov
1898928cf0
Calculate filed total of update command
2017-04-09 20:43:54 -07:00
Victor Denisov
da0441d454
Process legacy command as in mongoc
2017-04-09 20:43:54 -07:00
Victor Denisov
29286fa2e0
Implement more careful processing of error codes
2017-04-09 20:43:54 -07:00
Victor Denisov
74e8aa205d
Keep write concern errors in list
2017-04-09 20:43:54 -07:00
Victor Denisov
b6fa6ea402
Add WriteConcernError to UpdateResult
2017-04-09 20:43:54 -07:00
Victor Denisov
10675a0673
Report errors in UpdateResult instead of Exceptions
2017-04-09 20:43:54 -07:00
Victor Denisov
5254793767
Throw exceptions in case of single document updates
2017-04-09 20:43:54 -07:00
Victor Denisov
5812753217
Add more documentation
2017-04-09 20:43:54 -07:00
Victor Denisov
399e2c3443
Return update result for old versions of mongodb
2017-04-09 20:43:54 -07:00
Victor Denisov
55df5635f1
Drop testing of GHC 7.6 and mongo 2.4
2017-04-09 13:54:19 -07:00
Victor Denisov
b33294eec3
Add docker-compose file for dev environment
2017-04-09 11:16:06 -07:00
Victor Denisov
a11d573ff1
Tests use env variable to find mongodb host
2017-04-09 10:20:10 -07:00
Victor Denisov
24f060b9d9
Bump version
2017-04-08 13:38:33 -07:00
Victor Denisov
fbaef31ef5
Add ghc 8.0.2 and mongod 3.4.3
2017-04-08 12:57:23 -07:00
Victor Denisov
37ef215537
Test against 7.10.3
2017-04-08 12:54:06 -07:00
Victor Denisov
d43b63d305
Merge pull request #73 from VictorDenisov/merge_gridfs
...
Merge gridfs
2016-11-25 20:20:02 -08:00
Victor Denisov
ae64ee6e4e
Fix haddock errors
2016-11-21 20:49:44 -08:00