Skip to content

Rename SessionTx() to CreateTx() ? #362

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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