Scott R. Parish
6a3dd6f7c4
TODO
2010-01-18 15:04:02 -06:00
Scott R. Parish
f5f0ec2b8e
add documentation for public functions/types
2010-01-18 13:24:14 -06:00
Scott R. Parish
9f57eca933
make field selector a list rather then a BsonDoc
...
Requiring callers to construct {foo: 1, bar: 1} style field selectors
is just dumb. Instead we'll let them pass in the field selector as a list
of strings and then construct the above form automatically for them.
2010-01-18 12:43:05 -06:00
Scott R. Parish
35ef4acc41
more complete .cabal files
2010-01-18 11:55:08 -06:00
Scott R. Parish
1821870849
TODO
2010-01-18 11:54:35 -06:00
Scott R. Parish
949bece818
class for toBson/fromBson, instances for Maybe
...
For example, you can now use fromBson of Maybe BsonValue (eg the result of
a lookup) to convert to Maybe a.
You can also give a Maybe a to toBson and for Nothing it will produce
BsonNull and for Just a it will create the appropriate BsonValue for a.
2010-01-18 10:26:13 -06:00
Scott R. Parish
e2bcabae12
TODO
2010-01-18 10:26:09 -06:00
Scott R. Parish
f60d984677
some initial Convertibles for converting from Bson
2010-01-18 09:57:25 -06:00
Scott R. Parish
67bf1245bb
some initial (to BsonValue) Convertible instances and toBson
2010-01-17 23:08:14 -06:00
Scott R. Parish
4cfd4e7fa3
use what appears to be more standard naming, eg BsonValue instead of BSValue
2010-01-17 11:41:24 -06:00
Scott R. Parish
7f777c8fb4
compile with -Wall and -Werror, fix all ensuing breaks
2010-01-16 21:40:22 -06:00
Scott R. Parish
a5ab7cdb64
quickFind and quickFind'
2010-01-16 20:06:01 -06:00
Scott R. Parish
183e619362
allDocs': a strict version of allDocs
2010-01-16 19:38:11 -06:00
Scott R. Parish
4c17f8e646
licenses (MIT)
2010-01-16 19:22:46 -06:00
Scott R. Parish
0c019ad0e9
allDocs: create a lazy list off a cursor
2010-01-16 19:14:47 -06:00
Scott R. Parish
344c6bb975
add find command: simpler to use then query for most uses
2010-01-16 18:54:26 -06:00
Scott R. Parish
20f68b706c
rename curClose to finish a-la HDBC
2010-01-16 18:33:32 -06:00
Scott R. Parish
8f13ad003e
.gitignore dist/
2010-01-16 18:05:02 -06:00
Scott R. Parish
78427d37b1
conClose and curClose
2010-01-16 18:04:15 -06:00
Scott R. Parish
f5a946c0e0
query now returns a cursor, nextDoc iterates over the cursor
2010-01-16 18:03:17 -06:00
Scott R. Parish
8805ea4a9e
add missing exports
2010-01-16 17:59:15 -06:00
Scott R. Parish
ee1e4d3528
add protocol asserts
2010-01-16 17:59:10 -06:00
Scott R. Parish
6a9a533fcc
adding update support
2010-01-14 07:16:20 -06:00
Scott R. Parish
985423cfe7
fixes for query opts
2010-01-14 07:04:24 -06:00
Scott R. Parish
f9b4076a5c
TODO
2010-01-13 07:14:44 -06:00
Scott R. Parish
a2c5888e41
expose query options
2010-01-13 07:14:31 -06:00
Scott R. Parish
ec5760f0ec
TODO
2010-01-12 20:09:17 -06:00
Scott R. Parish
df29bf73b3
simple querying works and will return docs
2010-01-12 20:08:28 -06:00
Scott R. Parish
2ccab779f9
Binary.Put didn't treat Maybe the way i thought
...
I thought maybe it would unwrap Just x and put x, or not put anything
if Nothing, but aparently it puts \NUL if Nothing
2010-01-12 20:07:34 -06:00
Scott R. Parish
dd3e982c9e
s/reqId/reqID to match spec
2010-01-12 20:05:24 -06:00
Scott R. Parish
d1cccd075d
create and use putNothing instead of using flush as a no-op
2010-01-12 19:59:52 -06:00
Scott R. Parish
41b9c8d139
initial MongoDB.hs: can insert and delete
2010-01-10 21:23:54 -06:00
Scott R. Parish
b18d3d54b0
BSON: fix unexported data constructor
2010-01-10 21:23:54 -06:00
Scott R. Parish
2cea5777fb
BSON: use Data.Map for BSONObjects
2010-01-10 21:23:54 -06:00
Scott R. Parish
61051bfc46
move the get/put* helpers to Util.hs so other modules can use them
2010-01-10 21:23:50 -06:00
Scott R. Parish
06391f5992
stuff to make into a package
2010-01-09 16:49:06 -06:00
Scott R. Parish
5c5ec38413
move BSON.hs to Database/MongoDB/BSON.hs
2010-01-09 16:36:59 -06:00
Scott R. Parish
1de2672aad
TODO
2010-01-06 22:36:47 -06:00
Scott R. Parish
b3b6ca4d02
BSON datastructure and encode/decode is initially in place
2010-01-06 22:36:11 -06:00
Scott R. Parish
777fab6d5e
init
2010-01-06 21:46:03 -06:00