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
I have a use case where I would like to know if Tx has already been committed or rolledback. I can't track this information myself because it's for a package that is intended to be used by third parties.
Currently I have to perform a "fake" query on the Tx to check if it returns sql.ErrTxDone. This is ok if the transaction has in fact been committed or rolledback. But if it hasn't, then it will actually take time to call the query.
I believe the object internally tracks this information and it would be good if it was exposed.
The text was updated successfully, but these errors were encountered:
I have a use case where I would like to know if Tx has already been committed or rolledback. I can't track this information myself because it's for a package that is intended to be used by third parties.
Currently I have to perform a "fake" query on the Tx to check if it returns
sql.ErrTxDone
. This is ok if the transaction has in fact been committed or rolledback. But if it hasn't, then it will actually take time to call the query.I believe the object internally tracks this information and it would be good if it was exposed.
The text was updated successfully, but these errors were encountered: