-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi, thanks for creating this. I would love to use this tool if this supports checking transactions too. Usually, rows.Close() is something that is not missed. But I miss closing transactions often.
I would want to check that transactions are always either committed or rolled back before the function returns.
Something like
tx, err := db.Begin()
if err != nil {
return err
}
err = doSomething()
if err != nil {
tx.Rollback()
return err
}
return nil // error !! We are not doing tx.Commit() before returning.Will it be possible to add something like this ? Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels