const { start, beforeUpdate } = require('pg-table-subscriber');
start(dbConfig);
beforeUpdate('some_table', ({ previous, record }) => {
console.info('We`ve got something updated!');
console.info('It was like this:', previous);
console.info('A became:', record);
console.info('Well, okay...');
});
-
Notifications
You must be signed in to change notification settings - Fork 1
Automatic subscription to PostgreSQL tables on top of LISTEN / NOTIFY functionality
License
Pom4H/pg-table-subscriber
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Automatic subscription to PostgreSQL tables on top of LISTEN / NOTIFY functionality
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published