postgres-triggers:在 PostgreSQL 中设置类似更改提要的触发器函数

时间:2021-06-13 15:49:25
【文件属性】:
文件名称:postgres-triggers:在 PostgreSQL 中设置类似更改提要的触发器函数
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-13 15:49:25
JavaScript postgres 触发器 为表中的更改(插入、更新、删除)创建触发器函数。 触发器将返回一个 JSON 对象,其中包含一些信息和更改的行。 受到的。 由于使用json_build_object()您需要 Postgres 9.4或更高版本。 该模块处于早期阶段。 欢迎反馈和 PR! 安装 npm i [-g] postgres-triggers 用法 (CLI) postgres-triggers postgres://foo@localhost:5432/db table1 tbl2Name:idColumn ... 用法 (API) const triggers = require ( 'postgres-triggers' ) triggers ( { db : 'postgres://foo@localhost:5432/db' , // thre
【文件预览】:
postgres-triggers-master
----.travis.yml(264B)
----index.js(3KB)
----package.json(908B)
----readme.md(2KB)
----test()
--------test.js(4KB)
----.npmignore(17B)
----.gitignore(18B)
----cli.js(408B)

网友评论