only-cliches/Nano-SQL

Export - rawDump() is not working properly

Suresh918 opened this issue · 0 comments

Which version are you using?
2.3.7

Describe the bug
rawDump method is returning zero array (["0","0","0","0"]) instead of actual data

Expected behavior
It should return complete database tables data

Code used
nSQL().rawDump([], false, (table, row) => {
console.log(table);
console.log(row);
}).then((data) => {
console.log(data);
console.log(JSON.stringify(data));
});

Here console.log(table), console.log(row) working as expected with actual data. But console.log(data); or console.log(JSON.stringify(data)); are returning zero array