Commit graph

571 commits

Author SHA1 Message Date
Scott R. Parish
6045cc5c4b format nits 2010-03-12 23:54:41 -06:00
Scott R. Parish
108532268b putI16 2010-03-12 23:03:56 -06:00
Scott R. Parish
ab3b73b9ac util: type putI8 like the other putI* functions 2010-03-12 23:03:37 -06:00
Scott R. Parish
8e035fded4 DataBinary's subtype ByteArray alone has an extra length
ByteArray has the extra length, aparently as a historical artifact,
requiring it to be special cased.

Thanks to Mathias Stearn for pointing this out!
2010-03-10 20:34:58 -06:00
Scott R. Parish
697c370dea lift more tutorial sections from pymongo 2010-03-10 16:39:58 -06:00
Scott R. Parish
34599280f5 converter for Maybe type 2010-03-09 18:58:42 -06:00
Scott R. Parish
3c0b57db7c update tutorial to include more information 2010-03-09 18:36:15 -06:00
Scott R. Parish
cbc5128d47 mongodb returns count as a double: fix count function 2010-03-09 18:36:15 -06:00
Scott R. Parish
c1b8a21366 restoring array conversion using toBson/fromBson 2010-03-09 18:36:14 -06:00
Scott R. Parish
d1366e2261 changed formatting in tutorial 2010-03-08 23:16:49 -06:00
Scott R. Parish
f23d44195b readme 2010-03-08 23:09:41 -06:00
Scott R. Parish
8541b38f2b fix map-reduce-example formatting 2010-03-08 23:09:38 -06:00
Scott R. Parish
4e53e1b413 map/reduce example 2010-03-08 21:37:40 -06:00
Scott R. Parish
ece60d87ad better mapReduce apis
+ mapReduce is now the convience function that returns a cursor
+ runMapReduce can be called if you want the intermediate
  result meta-data
+ mapReduceResults will take the result meta-data and open a
  cursor on it
2010-03-08 19:43:34 -06:00
Scott R. Parish
0a391e631b mapreduce command 2010-03-08 07:08:34 -06:00
Scott R. Parish
fb2f09171a change BsonDoc representation to maintain order
Turns out that order is sometimes important for BSON documents. Case
in point, "mapreduce" has to be the first field for the map/reduce
command.

To accomidate this we'll switch from using 'Map' to using a tuple-list
(eg '[(L8.ByteString, BsonValue)]'). Luckily most code that was using
toBsonDoc doesn't need to change.

While at it, 'Convertible' is not adding much value, and was causing
ambiguities making it less usefull (was requiring explicit type hints
more then it should have). Thus we are switching to our own conversion
typeclasses.
2010-03-08 07:08:30 -06:00
Scott R. Parish
7587f435a2 support javascript code, rename to BsonJSCode to make it clearer what code 2010-03-08 07:04:04 -06:00
Scott R. Parish
cf9975468f rename BsonObject to BsonDoc to be more consistant with BSON definition 2010-03-06 12:28:57 -06:00
Scott R. Parish
3e27994a6e v0.3 2010-03-04 19:44:20 -06:00
Scott R. Parish
52bf1f6716 tutorial: add hint about binding allDocs to find 2010-03-01 08:28:38 -06:00
Scott R. Parish
cd4be93a02 tutorial: update connection section for new ConnectOpts stuff 2010-03-01 08:27:59 -06:00
Scott R. Parish
97a1088581 fix trailing whitespace in tutorial 2010-03-01 08:15:40 -06:00
Brian Gianforcaro
e65bbddc3d Add mini-tutorial 2010-02-28 07:19:02 -05:00
Scott R. Parish
08b601f124 adding ConnectOpts and an initial SlaveOk option 2010-02-26 19:39:28 -06:00
Scott R. Parish
2cee44d6a3 fix whitespace nits 2010-02-24 07:10:35 -06:00
Scott R. Parish
a3c56b3c2e simplify findOne 2010-02-24 07:10:35 -06:00
Scott R. Parish
f1fdc0f13b automatically find and connect to master 2010-02-24 07:10:32 -06:00
Scott R. Parish
b3581b5209 logout 2010-02-06 16:10:52 -06:00
Scott R. Parish
53fe82d117 create auth alias to be consistent with mongo JS api 2010-02-06 15:57:15 -06:00
Scott R. Parish
92f37cc946 make changes suggested by hlint 2010-02-06 15:52:23 -06:00
Scott R. Parish
613fc8ff6d allow individual ports to be set for connecting to cluster 2010-02-06 15:35:37 -06:00
Scott R. Parish
6b64ef81d8 Merge remote branch 'bgianfo/master'
This was already merged (by cherry-pick) but aparently github doesn't
detect that, so this will hopefully properly show that these patches
have been pulled in.
2010-02-06 15:01:00 -06:00
Scott R. Parish
847e8bac8b create type aliases for Username and Password
This will make the resulting documentation more clear what to pass
to the login and addUser functions
2010-02-06 14:56:56 -06:00
Scott R. Parish
8f972f6dda fix some haddock problems
Unfortunately it seem (emperically) that haddock only allows the pipe
character on the first line of document, not on every line. Or more
literally, it allows them, but treats them as part of the output to
display in the rendered document.

Fixing that, it also wasn't happy about not introducing the code block
as a new paragraph.
2010-02-06 14:52:09 -06:00
Scott R. Parish
34b4d22856 fix whitespace (mostly trailing) introduced in merge 2010-02-06 14:49:39 -06:00
Scott R. Parish
2f452e989c Merge remote branch 'rrichardson/master' 2010-02-06 14:40:23 -06:00
Scott R. Parish
35856c20a3 make suggestions given by hlint 2010-02-06 10:38:53 -06:00
Rick Richardson
58fbd2005f added whereClause, tidied code 2010-02-05 08:31:01 -05:00
Rick Richardson
e606b1bc1f tweaks and such 2010-02-02 22:40:41 -05:00
Rick Richardson
0cf0da8ab6 added login/user mgmt, added multiple handles in the connection 2010-02-02 16:06:53 -05:00
Scott R. Parish
9bc616ccf5 finish: only close cursor if cursor-id is non-zero
A '0' cursor-id means that no cursor was created, so there's nothing
to kill.

Also, findOne should never have a cursor opened for it, so no need
to even call finish.
2010-02-01 09:04:47 -06:00
Brian Gianforcaro
4c369f7a92 Fix small white space error
Signed-off-by: Scott R. Parish <sparish@peak6.com>
2010-01-26 06:26:26 -06:00
Brian Gianforcaro
78a526d9d7 Add and expose serverShutdown.
Signed-off-by: Scott R. Parish <sparish@peak6.com>
2010-01-26 06:26:21 -06:00
Brian Gianforcaro
73d147f875 A few comment spelling corrections
Signed-off-by: Scott R. Parish <sparish@peak6.com>
2010-01-26 06:24:23 -06:00
Brian Gianforcaro
dc2f8aa031 Fix small white space error 2010-01-26 04:03:59 -05:00
Brian Gianforcaro
39eec96357 Add and expose serverShutdown. 2010-01-26 04:02:47 -05:00
Brian Gianforcaro
e8be496011 A few comment spelling corrections 2010-01-26 02:40:00 -05:00
Scott R. Parish
e820d7ad07 verison 0.2 2010-01-24 21:20:45 -06:00
Scott R. Parish
d606e47f33 make changes suggested by HLint 2010-01-24 20:58:49 -06:00
Scott R. Parish
5ae3c4c2ae databasesInfo, databaseNames 2010-01-22 06:23:39 -06:00