Mathias Buus
9b508215e9
added destroy to cursor
11 years ago
Eduardo Sorribas
26d17aa20f
Add mongo native Db protptype methods to the Database prototype.
11 years ago
Eduardo Sorribas
a37030ac93
Refactor: add a Database constructor function and move db object functions to the prototype of said function.
11 years ago
Mathias Buus
0af4f457f6
minor style normalizations
11 years ago
Eduardo Sorribas
f82d35650e
Add error handling to runCommand functions.
11 years ago
Eduardo Sorribas
a7faea3303
Add support for both db.runCommand and db.collection.runCommand. Fixes #62 .
11 years ago
Eduardo Sorribas
fd3b42f943
Fix the code styling and add error handling.
12 years ago
Mathias Buus
5b0099d6c5
better error message on bad conf
12 years ago
freeall
55e8e63cd6
Added getIndexes alias
12 years ago
Eduardo Sorribas
41f562573a
Add the justOne option to the remove method and add tests for the remove method. fix #60
12 years ago
Mathias Buus
39c10808c7
callback should be optional for all mutators
12 years ago
Benedikt Arnold
f4d56052d5
Add compatibility support for keyf in group command
12 years ago
Forbes Lindesay
c52a7dc576
Expose Constructors
This lets users extend them if need be.
12 years ago
mafintosh
48819171b8
compat with new stream interface
12 years ago
mafintosh
3117fb3c11
using thunky
12 years ago
mafintosh
1135bf0979
better comment
12 years ago
mafintosh
e20e689277
cursor is a 0.10 and 0.8 compat readable stream
12 years ago
mafintosh
1d340be4e8
using memolite
12 years ago
mafintosh
5944380b36
Fixed #41
12 years ago
mafintosh
b7872dcc16
removed old comment
12 years ago
mafintosh
34819d893b
fixed cursor config issue
12 years ago
mafintosh
5ef53daadc
fixed group issue
12 years ago
mafintosh
6bf676c9dd
replSet config map deprecated but still supported
12 years ago
mafintosh
8eab6da549
more docs an supporting explicit docs
12 years ago
mafintosh
67a77c9313
0.5.2 rc
12 years ago
mafintosh
f03337785b
fixed auth issue
12 years ago
mafintosh
aec5e948f0
better connection string support
12 years ago
Robert S.
0f6cb6c588
adding batchSize config to Cursor
ex. usage:
db.collectionName.find({tag: 'exciting'}).sort({timestamp: -1}).batchSize(100, function(err, docs) {
});
12 years ago
mafintosh
652e0888c4
style changes and now exporting a single function
12 years ago
mafintosh
5818a90f9a
grouped public methods
12 years ago
Jake M
192f20b597
updated default safe variable to false
According to the mongodb people:
========================================================================================
= Please ensure that you set the default safe variable to one of the =
= allowed values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}] =
= the default value is false which means the driver receives does =
= return the information of the success/error of the insert/update/remove =
= =
= ex: new Db(new Server('localhost', 27017), {safe:true}) =
= =
= http://www.mongodb.org/display/DOCS/getLastError+Command =
= =
= The default of false will change to true in the near future =
= =
= This message will disappear when the default safe is set on the driver Db =
========================================================================================
12 years ago
Taeho Kim
a534bc6c16
mongodb group command added.
12 years ago
Taeho Kim
5b0b539e8b
mongodb group command added.
12 years ago
Morgan Rich
f599c3bf78
Updating the result.db variable to use the correct varible name for path.
12 years ago
Mathias Buus
fde6ad8772
shorthand replSet config syntax
13 years ago
Mathias Buus
54f467650b
support for replication sets
13 years ago
Mathias Buus
df360a7b21
compatible with mongodb 1.x.x
13 years ago
Mathias Buus
69ddb6f00e
exposed native mongodb object through a .client property
13 years ago
Ian Jorgensen
d59f4eb42f
renamed close to disconnect
13 years ago
Ian Jorgensen
b03b6e18f4
added close function
13 years ago
Mathias Buus
dca0383472
safe option will now always be set if a callback is given to a collection
13 years ago
Mathias Buus
f703899000
no more normalizing ids
13 years ago
Mathias Buus
6d55c1b25a
removed normalize function as it serves no purpose with the new JS parser, some style tidy
13 years ago
Ian
2f8c908ba6
removed deprecated native_parser
13 years ago
Srirangan
3c052020c9
Use JS parser if native parser is not available
13 years ago
Mathias Buus
ebf22e9aaa
added auto_connect = true
13 years ago
Mathias Buus
b7c9350bba
tidy
13 years ago
Mathias Buus
e99d05aa42
exposed all methods from db and collection upwards
13 years ago
Bjarke Walling
6e8ffb38dc
Exposing BSON constructors.
13 years ago
Mathias Buus
3a406615ff
fixed possible null pointer
14 years ago