-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Milestone
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.parallelorPromise.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 ?
matt212, qas, officer-rosmarino, brianc, thejmazz and 45 more
Metadata
Metadata
Assignees
Labels
No labels