Pre-Commit / Post Commit Hooks #358
safaci2000
started this conversation in
General
Replies: 1 comment 2 replies
-
You should be able to write it yourself. Is this what you had in mind? func Query(stmt Statement, db qrm.Queryable, dest any) error {
// pre hook
// .....
err := stmt.Query(db, &dest)
// post hook
// .....
return err
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a pattern where I'd like to say always insert a record into a database table when a transaction is active. I was wondering if there was any thing similar Bob's Hook patterns.
Example: https://bob.stephenafamo.com/docs/models/hooks
It seems like a very useful features and was curious if Jet had something similar.
Beta Was this translation helpful? Give feedback.
All reactions