samedi 16 juillet 2016

Django listen to SQL database?

Is it possible for Django to "listen" to my SQL database for updates and to perform certain functions in response to said updates? Let's say some other existing code has a connection and access to the SQL database, and inside that code there's a function that updates a column with properties ENUM('NEW', 'OLD') from "NEW" to "OLD", how can I detect / listen for this change with Django, and associate some sort of callback function upon detection? Trying to figure out a way to detect updates/changes to the database without just constantly querying the database or some sort of timer that checks periodically

Aucun commentaire:

Enregistrer un commentaire