Closed giuliocn closed 2 months ago
You may finish your work now. Please, make sure folder structure looks the same as for other examples, e.g. no .md
files, please.
Thanks @pashagolub I would like to reopen this PR to further improve this example.
OK, the pull-request branch was deleted. We need to proceed in the new PR
Description:
This Go program demonstrates interacting with a PostgreSQL database using batch operations for improved efficiency. It leverages the
pgx/v5
library for database connectivity.Features:
ledger
to store data (description and amount).pgx.Batch
. This includes inserts (INSERT
), selects (SELECT
), and an aggregate function (SUM
).Begin
,Commit
, andRollback
.ledger
table after processing.