Closed shiffman closed 9 years ago
Actually:
concordance.db.update({_id: id}, {$set: {count: 15}}, {});
Realized removing and updating doesn't change DB file directly. instead it make an record of deleted _id and new entry, instead of actually deleting line or updating entry.
I was loading DB file created by "useDatabase("words");" and parsing it into array of JSON. But I now I am getting all these duplicates and logs.
Is there way to directly access DB directly without sending post to server and server route()ing to to new page with template used?
I want direct access to DB.
@getarobo you can access the database directly in a few ways. First, you can simply open up and edit the database file. Second, you can bypass servi's methods and access the database object with yourdbname.db. You'll then have access to all the functions listed here: https://github.com/louischatriot/nedb
@shiffman I've fixed removing and updating so those should work now.
This fails:
The fix for now is: