Commit graph

546 commits

Author SHA1 Message Date
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
Scott R. Parish
6bf32ab9eb serverInfo 2010-01-21 21:09:20 -06:00
Scott R. Parish
e8f6141529 renameCollection 2010-01-21 19:12:06 -06:00
Scott R. Parish
539c98bbaa TODO 2010-01-21 18:55:27 -06:00
Scott R. Parish
62dfc44393 indexInformation 2010-01-21 18:55:23 -06:00
Scott R. Parish
bb9bbf56d2 switch apis to all use Lazy.ByteString 2010-01-20 23:19:39 -06:00
Scott R. Parish
f8652ed11a make BsonDoc a 'type' rather then 'newtype'
All the wraping/unwraping for the newtype was really cumbersome and
protection isn't really needed here.
2010-01-20 22:31:32 -06:00
Scott R. Parish
66ad002718 BsonValue convertible instances so fromBson can unwrap BsonObjects 2010-01-20 20:55:33 -06:00
Scott R. Parish
b413958ef7 dropIndexes 2010-01-20 06:20:30 -06:00
Scott R. Parish
7df946f697 dropIndex 2010-01-19 22:44:14 -06:00
Scott R. Parish
f1aa28b9e4 docs for createIndex 2010-01-19 22:35:21 -06:00
Scott R. Parish
46839acdbc createIndex 2010-01-19 22:31:38 -06:00
Scott R. Parish
f173d9d0a7 convertible for BsonObject 2010-01-19 20:30:04 -06:00
Scott R. Parish
bff4817970 expose runCommand 2010-01-19 06:31:59 -06:00
Scott R. Parish
45b9be608e rename Collection to FullCollection to be consistant with server docs 2010-01-19 06:28:17 -06:00
Scott R. Parish
345ab65811 add homepage to .cabal 2010-01-19 06:03:58 -06:00
Scott R. Parish
423842a0c6 .cabal fixes required for hackage submission 2010-01-19 00:02:53 -06:00
Scott R. Parish
e58dc782ad TODO 2010-01-18 22:25:40 -06:00
Scott R. Parish
ba53b4b7e8 forgot docs for validateCollection and dropCollection 2010-01-18 22:20:01 -06:00
Scott R. Parish
dc99780c03 count, countMatching 2010-01-18 22:19:38 -06:00
Scott R. Parish
d7f6cfc348 validateCollection 2010-01-18 21:39:38 -06:00
Scott R. Parish
6569157051 dropDatabase 2010-01-18 21:31:21 -06:00
Scott R. Parish
9b32259dc8 TODO 2010-01-18 21:26:44 -06:00
Scott R. Parish
311e0462ac dropCollection 2010-01-18 21:26:34 -06:00
Scott R. Parish
73d9a00d5f createCollection 2010-01-18 21:26:00 -06:00
Scott R. Parish
3aaee6cf84 findOne: tell database to only return one 2010-01-18 19:36:10 -06:00