Pierre Mizrahi
51358d13c4
mongo 6: fix issue on collections with '.'
...
Collection names are allowed to have a '.' in their name, db
names aren't (see
https://www.mongodb.com/docs/manual/reference/limits/#naming-restrictions )
This codes changes the logic to extract the collection
name form a FullConnecton string by stripping until the first
dot, and provides a test case.
2023-05-29 11:48:05 +02:00
Scott Fleischman
21cf023854
Add module Database.MongoDB.Internal.Network.
...
Add flag imitating bson package PR for network changes.
Add stack files for compilation checking.
Both ghc86 builds work. Still need to fix ghc84 and under builds with older network code.
2019-05-29 18:02:37 -07:00
Scott Fleischman
c03e1ed746
Use Control.Monad.Except instead of Control.Monad.Error.
...
Due to the following warning:
"Module ‘Control.Monad.Error’ is deprecated:
Use "Control.Monad.Except" instead"
2019-05-29 16:57:51 -07:00
Victor Denisov
dd6c5057f5
Add modifyMVar for Action monad
2017-05-08 22:48:13 -07:00
Mikkel Christiansen
f69440d7fa
Remove applicative import warnings in GHC 7.10.1.
2015-05-15 15:26:34 +02:00
Greg Weber
98bcc2dfe8
abstract connection interface
...
rebase #13 to master
2015-03-05 11:21:58 -08:00
Michael Snoyman
a43c94f977
Remove MonadIO'
2013-12-27 13:39:22 +02:00
Michael Snoyman
caab81a54e
Get rid of usage of ErrorT
2013-12-26 17:23:02 +02:00
Michael Snoyman
756c9181cb
Replace hard tabs with spaces
2013-12-26 16:57:33 +02:00
Fedor Gogolev
46b3f1f3fa
Support for network 2.4.1
2013-01-21 02:08:20 +04:00
Michael Snoyman
681f9f875f
GHC 7.6 support
2012-09-10 20:25:45 +03: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
Greg Weber
b706780844
use -fno-warn-orphans
2012-02-29 11:35:55 -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
9f48c26384
Simplify! Removed Context and Throw monad classes. Removed embedded pool from replica-set. Not backwards-compatible, starts new major version 1.x
2011-07-05 10:37:01 -04:00
Tony Hannan
111d9a2f72
Abstract network communication so we can capture and replay messages if desired. Also, remove dependence on deprecated ImpredicativeTypes.
2010-12-19 21:08:53 -05:00
Tony Hannan
36cc86fd70
Rename Connection to ConnPool. Edit tutorial and some comments
2010-10-31 20:38:38 -04:00
Tony Hannan
de32b22b4f
Connection pooling and some refactoring
2010-10-27 16:13:23 -04:00
Tony Hannan
3a7f235246
Slight API refactoring. Fix spinning pipeline when other end disconnects. Handle response flags correctly
2010-07-27 17:18:53 -04:00
Tony Hannan
c9dc87ad33
Slight redesign: pipelining with writeMode instead of exclusive access with getLastError
2010-06-21 11:06:20 -04:00