ZergRushJoe / databaseExp

database testing
1 stars 0 forks source link

mongo does not get cleaned out after you run initdatabases.js #9

Open ZergRushJoe opened 7 years ago

ZergRushJoe commented 7 years ago

after running the code many times over it only works the first time and not after that because the mongo db does not get cleaned out when initdatabases.js is run

ZergRushJoe commented 7 years ago

I found this command to clean out the database

db.dropDatabase();

knhumbarger commented 7 years ago

That is the command that you would indeed use to essentially reset the database. Do you want the test data to be cleaned out or?

knhumbarger commented 7 years ago

Is the sqlite db being cleaned out or does that need fixing as well?

ZergRushJoe commented 7 years ago

No its fine the way it is