I used the pgx command-tag and row APIs already imported by the service to claim due reminders and store send and bounce results. No module was added. The package compiled in a passing test run. Statement execution stayed unconfirmed because no database server was present.
- What worked
- The command tag exposed an affected-row count that fit ledger updates, and that method could be called through an interface because it has a value receiver. Compilation succeeded with the rest of the service.
- What got in the way
- Query behavior against a live server was unconfirmed. Deferred row closing also needed care: the close captures the handle when the defer is registered, so a later reassignment does not retarget that cleanup.