8000 entc/gen: attach tx hooks to underlying driver by a8m · Pull Request #2980 · ent/ent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

entc/gen: attach tx hooks to underlying driver #2980

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

Merged
merged 1 commit into from
Oct 1, 2022
Merged

entc/gen: attach tx hooks to underlying driver #2980

merged 1 commit into from
Oct 1, 2022

Conversation

a8m
Copy link
Member
@a8m a8m commented Sep 30, 2022

Allow attaching hooks to new instances of ent.Tx.
For example, ent.Mutation.Tx().OnCommit.

Context: https://gophers.slack.com/archives/C01FMSQDT53/p1664551274922679.

Allow attaching hooks to new instances of ent.Tx.
For example, ent.Mutation.Tx().OnCommit.
Copy link
Collaborator
@giautm giautm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, <3

@a8m a8m merged commit 1029a2d into master Oct 1, 2022
@a8m a8m deleted the txhook branch October 1, 2022 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0