Implement an Audit Trail on changes #1874
-
Hi I want to have an Audit Trail table in the DB to track all changes made on certain table. Something like: I want to be able to register to an event just after (or before ) changes are committed to the DB in order to prepare the data based on the changes that were done and save it to the Audit Trail table. To better understand my question, please see this example on how it can be done with Entity Framework Thank you very much for your great work. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @yuval-hazaz 👋 unfortunately Prisma currently doesn't support this particular use case! However, we definitely want to enable this in the future. For now I recommend that you open a feature request with a concrete description of your use case and ideally your "dream API" for what this feature could look like in Prisma 🙂 |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. I will open a feature request with all the details. |
Beta Was this translation helpful? Give feedback.
-
Coming here 2 years later: any updates in this front? |
Beta Was this translation helpful? Give feedback.
Hey @yuval-hazaz 👋 unfortunately Prisma currently doesn't support this particular use case! However, we definitely want to enable this in the future.
For now I recommend that you open a feature request with a concrete description of your use case and ideally your "dream API" for what this feature could look like in Prisma 🙂