sqlclosecheck
sqlclosecheck copied to clipboard
Support for ignoring statements from StmtContext
from the godocs for Tx.StmtContext:
The returned statement operates within the transaction and will be closed when the transaction has been committed or rolled back.
This makes it syntactically nicer to not defer stmt.Close()
when using StmtContext
Is it possible to ignore errors for these statements?
Should be possible. I will look into it and see what I can do.
Similarly, would it be possible to ignore errors inside loops? Or can you provide an example showing how to use sqlclosecheck
inside a loop?
Sorry for not following up. Over the next few weeks I will be giving this project more attention. This looks to be similar to https://github.com/ryanrolds/sqlclosecheck/issues/14. I'm counting them as two requests for not flagging unclosed transactions.