saintedlama
54a9ab9844
Fix code style to match standard version 5 code style
9 years ago
saintedlama
026842392e
Update dependencies and move to standard version 5
9 years ago
saintedlama
99811b5fa4
Ignore vi temporary files
9 years ago
saintedlama
37c690b162
Increase coverage by adding tests for eval, drop database, db stats, create and drop users
9 years ago
saintedlama
f49c38e602
Cleanup getCollectionNames implementation by using mongodb-native functionality
9 years ago
saintedlama
3d375f8f96
Generate functions to set limit, batchSize, sort and skip
9 years ago
saintedlama
bbb030cc85
Remove duplicate code from aggregate
9 years ago
saintedlama
44b8ee85b7
Introduce _getCollection to avoid duplicate _getConnection + connection.collection(this._fullName) code
9 years ago
saintedlama
f240a7eade
Clarify comment
9 years ago
saintedlama
26cc39503d
Call EventEmitter constructor
9 years ago
saintedlama
6e182e33ac
Test toString implementations for mongos and replica set connection strings
9 years ago
saintedlama
cb70b552a3
Make database an EventEmitter and emit events for error and connect
9 years ago
saintedlama
11b513d5d2
Remove destroy event test
9 years ago
saintedlama
48a00dfae5
Add test to verify that connecting to a non existing database yields an error in the provided operation callback
9 years ago
saintedlama
60297a3779
Implement mongojs and mongodb-native connection passing
9 years ago
saintedlama
3a89ec7a02
Implement passing mongojs connections
9 years ago
saintedlama
143c836910
Fix next implementation by checking if the cursor was closed and quite in a graceful manner
9 years ago
saintedlama
73a79ac2ae
Implement aggregations
9 years ago
saintedlama
bae604e620
Fix code style issues
9 years ago
saintedlama
d46197501a
Fix code style issues
9 years ago
saintedlama
e5a60d1051
Implement bulk operations
9 years ago
saintedlama
180abe8b36
Implement isCapped
9 years ago
saintedlama
31d98d2c89
Implement group
9 years ago
saintedlama
d95e6a6335
Implement cursor destroy/close
9 years ago
saintedlama
1df73360b0
Implement update and getIndexes
9 years ago
saintedlama
482cb8402b
Implement cursor operations
9 years ago
saintedlama
b66eb5be62
Implement close
9 years ago
saintedlama
4257022e81
Implement find using cursor
9 years ago
saintedlama
bad14616fe
Add TODO concerning command interface hits
9 years ago
saintedlama
37c2fb5703
Test stats
9 years ago
saintedlama
749dfd76cf
Implement command execution on collection level
9 years ago
saintedlama
ac5c2fc070
Fix distinct tests
9 years ago
saintedlama
246976ee70
Implement basic functionality to insert and remove documents to drive all further tests
9 years ago
saintedlama
54bae0340f
Fix code style
9 years ago
saintedlama
3026b7f4ab
Use mongodb instead of mongodb-core and add minimal test to require mongojs and access all bson types
All other tests are currently failing
9 years ago
Thomas Watson Steen
a5b706f5e1
1.4.0
9 years ago
Thomas Watson Steen
4c49a9cc5a
Merge pull request #251 from mafintosh/watson/expose-bson
Expose bson stuff visible in the shell
9 years ago
Thomas Watson Steen
c7de0cc8da
Expose bson stuff visible in the shell
Previusly only the `ObjectId` function was exposed and available
directly from the root of the `mongojs` module.
This commit exposes a couple of other BSON types in the same manner.
This is now the full list of exposed types:
- `mongojs.ObjectId`
- `mongojs.DBRef`
- `mongojs.Timestamp`
- `mongojs.MinKey`
- `mongojs.MaxKey`
- `mongojs.NumberLong` (the BSON type `Long`)
This is actually a revival commit, bringing back the spirit of the very
first Pull Request ever made to this projeect back in 2011 (later
refined in commit 06bbf02
):
https://github.com/mafintosh/mongojs/pull/1
9 years ago
Thomas Watson Steen
ebf6bc8d94
Fix build of MongoDB >2.4 on Travis
You can see what wen't wrong here:
https://travis-ci.org/mafintosh/mongojs/jobs/83872281
I'm not sure this is the best solution, since I'm no apt-get wizad - but
it works ;)
9 years ago
Thomas Watson Steen
0e1b5737e1
Run tests against Node.js v4.x instead of iojs
9 years ago
saintedlama
f801df644f
1.3.0
9 years ago
saintedlama
469f48c9b3
Add test for pull request #237 "Fixed insert error detection and passing"
9 years ago
Christoph Walcher
b8e900e6bc
Merge pull request #237 from AMKohn/patch-1
Fixed insert error detection and passing
9 years ago
Christoph Walcher
685118f8ef
Merge pull request #240 from kapetan/return-on-connection-error
Return on connection error
9 years ago
Mirza Kapetanovic
d9c5facd66
Return on connection error
9 years ago
Avi Kohn
d2773ec289
Added more existence checks to insert
9 years ago
Avi Kohn
3a1286eba1
Fixed insert error detection and passing
mongodb-core doesn't pass an error object in certain cases, such as on duplicate key errors. This change checks the result's `writeErrors` property and, if it's populated, passes the first one back.
9 years ago
Christoph Walcher
ba18f23676
Remove events not working from Upgrading notice
9 years ago
saintedlama
27939a7c4c
Pass options to mongodb topology instance constructor
9 years ago
Christoph Walcher
451b14e63c
Merge pull request #229 from mafintosh/saintedlama/events
Implement events
9 years ago