Wondering what’s next for npm?Check out our public roadmap! »

pg-triggers

0.2.3 • Public • Published

pg-triggers

Triggers for postgres

extending npm-version downloads build coverage dependencies

language: English also available in: Spanish

Install

$ psql < lib/recreate-his.sql
$ psql < lib/table-changes.sql
$ psql < lib/function-changes-trg.sql

Config

$ psql < lib/enance.sql
$ psql -c "select enance_table('state','country,state')"

You must call enance_table(table_name, primary_key_fields) for each table that you want to audit changes on each time you create a table or alter the primary key.

Devel

$ npm install pg-triggers
$ npm test

License

MIT

Keywords

none

Install

npm i pg-triggers

DownloadsWeekly Downloads

10

Version

0.2.3

License

MIT

Unpacked Size

7.05 kB

Total Files

8

Last publish

Collaborators

  • avatar