postgres 观察者
监视您的 PostgreSQL 数据库的变化。 在使用此模块之前,您需要设置一些触发器,例如使用 。
受到的。
该模块处于早期阶段。 欢迎反馈和 PR!
安装
npm i postgres-watcher
用法 (API)
这个模块基本上是一个事件发射器。 除了它应该是一个 JSON 对象之外,它不会对您的触发器有效负载做任何假设。
const Watcher = require ( 'postgres-watcher' )
const watcher = Watcher ( {
db : 'postgres://foo@localhost:5432/db' ,
channel : 'table_update' , // optional
// optional filter function.
// only payloads wh
评论0
最新资源