Mathias Buus
0e311019a8
support for chained col names in col array. fixes #42
11 years ago
Mathias Buus
2ec9b9bf16
added .open and some comments
11 years ago
Eduardo Sorribas
66ae6a1b0c
Fix runCommand() bugs.
11 years ago
Eduardo Sorribas
ba283167dc
Fix runCommand() bugs and update tests
11 years ago
Mathias Buus
f36fc8f5fe
setting highWaterMark to 0 since the driver buffers
11 years ago
Mathias Buus
e839b01ead
fixed test in regards to #76 and some formatting
11 years ago
Forbes Lindesay
8ec0cb9930
Expose `Database` so the prototype can be easily extended
11 years ago
Forbes Lindesay
39685d9813
Fix getCollectionNames so result is the second arg of callback
11 years ago
Mathias Buus
1191b51c7b
.remove returning 0 if something was removed
11 years ago
Mathias Buus
96d5d0bce2
return from remove if no docs are found - fixes #75
11 years ago
Eduardo Sorribas
752aec331b
Add support for db.getCollectionNames() and a test case for it.
11 years ago
Mathias Buus
1bf49a3e93
added a ._apply method for the db as well
11 years ago
Mathias Buus
aec128431d
reemitting error in nextTick. fixes #72
11 years ago
Eduardo Sorribas
df3eef40ae
Remove duplicate .explain function.
11 years ago
Eduardo Sorribas
abb435ec4a
Add support for Cursor.explain()
11 years ago
Mathias Buus
942cf5106c
using util.inherits
11 years ago
Markus
356715725e
Fixing problems with collection names which have the same name as functions in native
If you have collection names which are identical to functions in the mongodb-native you will get in trouble with the changes on the db prototype (a37030ac93
and 26d17aa20f
).
This small fix changes the behaviour:
If you initialize collection names with the connect they will overwrite the prototype functions.
If you use the explicit collection() you will always get the collection and not the possible available prototype function.
11 years ago
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