I always forget how to create new DB transaction in upper/db.
err := DB.SessionTx(func(tx bond.Session) error {
// tx
}
Whenever I search my codebase to remind myself, I end up git-grepping "CreateTransaction" or "CreateTx" but nothing comes up.
@xiam would you be open to renaming the SessionTx() method (or having an alias) to CreateTx() instead?
err := DB.CreateTx(func(tx bond.Session) error {
// tx
}
@pkieltyka @c2h5oh @diogogmt @pxue thoughts?