You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, sqlc only supports the :batchexec annotation, which allows for combining multiple inserts into the same table within a single batch. While this is useful, there are situations where you may need to insert data into multiple tables. In such cases, you might want sqlc to simply queue the queries in a batch and return them, enabling you to pass the same batch to another sqlc batch function. This way, you can execute the batch once all queries have been queued.
What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go
The text was updated successfully, but these errors were encountered:
GeorgyBocharov
changed the title
Add :batchqueue query annotation to enable combining inserts into multiple tables into a single batch
Add a query annotation to enable batching across multiple tables
Dec 17, 2024
What do you want to change?
Currently, sqlc only supports the
:batchexec
annotation, which allows for combining multiple inserts into the same table within a single batch. While this is useful, there are situations where you may need to insert data into multiple tables. In such cases, you might want sqlc to simply queue the queries in a batch and return them, enabling you to pass the same batch to another sqlc batch function. This way, you can execute the batch once all queries have been queued.What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go
The text was updated successfully, but these errors were encountered: