python: how to get notifications for mysql database changes?

后端 未结 5 1298
猫巷女王i
猫巷女王i 2020-11-30 10:43

In Python, is there a way to get notified that a specific table in a MySQL database has changed?

5条回答
  •  攒了一身酷
    2020-11-30 11:18

    Yes, may not be SQL standard. But PostgreSQL supports this with LISTEN and NOTIFY since around Version 9.x

    http://www.postgresql.org/docs/9.0/static/sql-notify.html

提交回复
热议问题