Skip to content
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

I want a Consumer to be called when the transaction ends #230

Closed
shout-star opened this issue Dec 22, 2019 · 1 comment
Closed

I want a Consumer to be called when the transaction ends #230

shout-star opened this issue Dec 22, 2019 · 1 comment
Milestone

Comments

@shout-star
Copy link
Contributor

For example, I want to be able to register Consumer when initializing SqlConfig as below.
This is because the ability to hook commit / rollback allows you to insert common processing that you want to do only when the transaction succeeds.

SqlConfig config = UroboroSQL.builder(...)
  .setSqlAgentFactory(new SqlAgentFactoryImpl()
    addPreCommitHook((ctx) -> this.something(ctx))
    addPreRollbackHook((ctx) -> this.something(ctx))
  )
).build();
@shout-star shout-star added this to the v0.18.0 milestone Dec 22, 2019
@HidekiSugimoto189 HidekiSugimoto189 modified the milestones: v0.18.0, v0.19.0 Mar 12, 2020
@HidekiSugimoto189 HidekiSugimoto189 modified the milestones: v0.19.0, v1.0.0 Jul 12, 2020
ksky8864 pushed a commit to ksky8864/uroborosql that referenced this issue Apr 14, 2021
Includes consumers to be called when the transaction ends(future-architect#230)
Removed SqlFilter and remade its implements into each event subscriber.
Merged auto parameter binder APIs into the Event APIs.
@HidekiSugimoto189
Copy link
Contributor

support with #311

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

No branches or pull requests

2 participants