I am looking for a way to execute a function on successful transactions on a schema. In Active Record terms, this would be a “hook” or “callback”. My intuition says that belongs in the changeset, however they are evaluated before the actual transaction; which is too early.
My concrete scenario: Deleting caches on any update / insert / delete of a certain schema.
Thanks, that makes sense. I was looking for a single place to put the code but I already have that (in Phoenix): the update function in the context. Great