Open notnooblord opened 3 years ago
Is your feature request related to a problem? Please describe. I want to add metrics to database (query times, exceptions, create|delete calls, etc.)
Describe the solution you'd like It would be great to have something like hooks into db functions.
Describe alternatives you've considered So far I have considered monkey pathing using decorators, but it seems like a very bad practice.
Additional context SQLalchemy has this thing called events: https://docs.sqlalchemy.org/en/14/orm/session_events.html
Btw, thank you very much for great work, and best Async-ORM so far! 👍
What about https://tortoise-orm.readthedocs.io/en/latest/signal.html?
Is your feature request related to a problem? Please describe. I want to add metrics to database (query times, exceptions, create|delete calls, etc.)
Describe the solution you'd like It would be great to have something like hooks into db functions.
Describe alternatives you've considered So far I have considered monkey pathing using decorators, but it seems like a very bad practice.
Additional context SQLalchemy has this thing called events: https://docs.sqlalchemy.org/en/14/orm/session_events.html
Btw, thank you very much for great work, and best Async-ORM so far! 👍