-
Notifications
You must be signed in to change notification settings - Fork 967
Closed
Description
As mentioned in #472, pgx batching can be a very important tool for efficient inserts and queries. There doesn't seem to be any way to use the generated methods with the existing pgx batching interface. The pgx batching interface is defined by the Batch type and its Queue method. It would be neat if we could have something similar to the generated New(db DBTX) *Queries function that operates on a pgx.Batch.
We'd need to think a little about the design, since in an ideal world we'd still be able to get typed responses for each entry on the batch. Maybe each function on the type that operates on a batch should take a callback or something for how to process the returned data?
esenmx, acacio, danielbprice, raja, lainy and 5 morerobfordww
Metadata
Metadata
Assignees
Labels
No labels