pg-triggers
v0.3.3
Published
Triggers for postgres
Downloads
70
Readme
pg-triggers
Triggers for postgres
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
$ psql --file install/create_db.sql
$ npm test