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

Plugin transaction callbacks and transaction scoped variables #5855

Open
iwarapter opened this issue Nov 14, 2022 · 1 comment
Open

Plugin transaction callbacks and transaction scoped variables #5855

iwarapter opened this issue Nov 14, 2022 · 1 comment
Assignees

Comments

@iwarapter
Copy link

Describe the feature

Transaction callbacks for plugins. I'd like to implement a Plugin that can create revision records for audited models. For this i need to be able to hook into the transaction lifecycle and be able to set a variable (revisionid) for the transaction.

Motivation

I'm currently working on a opensource plugin to implement https://hibernate.org/orm/envers/ for gorm. Which i'd like to see join https://github.com/go-gorm if its good enough.

Related Issues

I have tested with #5492 but am unable to use with db.Set or db.InstanceSet to persist variables for the entire transactions.

@github-actions github-actions bot added the type:feature_request feature request label Nov 14, 2022
Copy link

github-actions bot commented Nov 9, 2023

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days

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