node-querybuilder
node-querybuilder copied to clipboard
insert_batch on_dupe and callback?
How would I define an insert_batch with the table, data, on_dupe, and a callback? Each time I try to do this, it doesn't seem it can support all those parameters together in which I get an error that the callback is not a function which I assume is because it expects a callback where the other parameters are.
I'm trying to use an insert_batch, but also want to skip duplicates using the on_dupe.
Thanks!