Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear function problem #23

Open
polizinha opened this issue May 5, 2015 · 3 comments
Open

Clear function problem #23

polizinha opened this issue May 5, 2015 · 3 comments

Comments

@polizinha
Copy link

Hello!
I'm trying to use clear function and I haven't success. Debugging, I saw that when at line 150 (results.db.collectionNames(function(err, names)), my object result doesn't have collectionNames function and I haven't code progress.

My results object:
{ db: { domain: { domain: null, _events: [Object], _maxListeners: 10, members: [] }, _events: {}, _maxListeners: 10, s: { databaseName: 'pwtests', topology: [Object], options: [Object], logger: [Object], bson: {}, authSource: undefined, readPreference: undefined, bufferMaxEntries: -1, parentDb: null, pkFactory: undefined, nativeParser: undefined }, serverConfig: [Getter], bufferMaxEntries: [Getter], databaseName: [Getter], options: [Getter], native_parser: [Getter], slaveOk: [Getter], writeConcern: [Getter] } }

@pipo02mix
Copy link

Same issue here!

@bitliner
Copy link

bitliner commented Aug 7, 2015

It is related to the version of mongodb package.
If you install as dependency of this module mongodb@1.3.20 then all works.

The reason is that newer version of mongo changed the API of the driver, but this module did not update consequently.

A fix should be required, and it should be to get collection names according to newer methods of the driver.

@poperor
Copy link

poperor commented Sep 11, 2015

clear function without the data argument still does not seem to drop the database when using the mongodb driver (version 2.0.34) that is packaged with this module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants