Open
Description
Hello,
Regularly there some questions about how to make batch inserts/updates and how to escape values safely.
Eg see :
#1400
#1387
#957
#880
I don't find any reference to this topic in the new doc site, but a user of this library can legitimately wonder how to handle this :
- with a multistatements query ? (no since not supporting parameters)
- with multiple queries and flow control library (eg : async.js
async.parallel
orPromise.all
) ? - with a multistatements query formatted with a third-party formatting module ? (eg like https://github.com/datalanche/node-pg-format, see example How to insert multiple rows with a single query? #957 (comment))
- with a not-so-obvious query like How to insert multiple rows with a single query? #957 (comment) ?
- within transaction or not ?
- and probably an additional question : when to use pg-copy ?
Metadata
Metadata
Assignees
Labels
No labels