Posted in

Go语言事务提交必须用err == nil判断成功?错!你需要检查sql.ErrTxDone、driver.ErrBadConn与自定义IsCommitError()

第一章:Go语言事务提交的常见认 … Go语言事务提交必须用err == nil判断成功?错!你需要检查sql.ErrTxDone、driver.ErrBadConn与自定义IsCommitError()Read more

Posted in

Go语言事务提交必须加defer tx.Rollback()?不,你真正需要的是context-aware cleanup协议(RFC草案级实践)

第一章:Go语言事务提交的常见误 … Go语言事务提交必须加defer tx.Rollback()?不,你真正需要的是context-aware cleanup协议(RFC草案级实践)Read more