0.0.8 • Published 3 years ago

db-watch v0.0.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

db-watch image test

Various implementation of database replication, including creating Postgres triggers and monitoring with notify listeners.

Example

// Add to migrations
for (const query of setupQueries) await knex.raw(query)

// After CREATE TABLE users
await knex.raw(createNotifyRowFunction('users', 'updated', "'username', orig.username"))
await knex.raw(createNotifyTrigger('users', 'updated'))

// Maximum PostgreSQL NOTIFY payload is 8192 bytes.
await knex.raw(createNotifyRowFieldsFunction('event', 'updated', "'date', orig.date, 'guid', orig.guid))
await knex.raw(createNotifyTrigger('event', 'updated'))
0.0.8

3 years ago

0.0.5

4 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago