sqlclosecheck icon indicating copy to clipboard operation
sqlclosecheck copied to clipboard

Support for ignoring statements from StmtContext

Open camhashemi opened this issue 3 years ago • 3 comments

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?

camhashemi avatar Oct 07 '20 09:10 camhashemi