-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename SessionTx() to CreateTx() ? #362
Comments
I like the name of it at first glance
… On Apr 24, 2017, at 3:40 PM, Vojtech Vitek ***@***.***> wrote:
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?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@pkieltyka sorry - you like the original |
At a glance, I think CreateTx is more obvious what it does
… On Apr 24, 2017, at 3:50 PM, Vojtech Vitek ***@***.***> wrote:
@pkieltyka sorry - you like the original SessionTx() name? Or the proposed CreateTx() name?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I always forget how to create new DB transaction in upper/db.
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) toCreateTx()
instead?@pkieltyka @c2h5oh @diogogmt @pxue thoughts?
The text was updated successfully, but these errors were encountered: