chjj/node-tiny — Issue #2: Each only returns one record
Author: drluckyspin
Created: 2012-02-14 07:08:09+00:00
State: open

I am trying to use the each method to iterate on all of the records, but it only appears to be getting called once. This is what I'm using:

tinyDB.each(function(record) {
var currentRecord = [record.timestamp, record._key, record.value];
console.log("Current record = " + currentRecord);

}, function() {
console.log('done with loading objects');
}, true
);

Am I missing something?

Thanks