Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rename SessionTx() to CreateTx() ? #362

@VojtechVitek

Description

@VojtechVitek

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions