PapaParse icon indicating copy to clipboard operation
PapaParse copied to clipboard

streaming database to CSV

Open MohammedAlasaad opened this issue 4 years ago • 1 comments

Hi Is there a way to export big database using streaming and then convert it to JSON then save it as CSV file using Papa.unparse ? I think step does not work with unparse..

const csv = Papa.unparse(file, {
            delimiter: '\t',
            header: true,
            skipEmptyLines: true,
            step: function (results, parser) {
                console.log("Row data:", results.data);
                console.log("Row errors:", results.errors);
            },
            error: function (err, file) {
                console.log('Something went wrong CSV Exporter Papa.parse!', err + file)
            }
        });

MohammedAlasaad avatar Oct 12 '20 16:10 MohammedAlasaad

In general are there plans for at least adding a complete argument to unparse so that we can implement it as a Promise and use async await like we already can with parse?

evbo avatar Oct 13 '22 16:10 evbo