Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmatth11/db_listener
experiment with listening to table updates in postgres
https://github.com/jmatth11/db_listener
db notifications postgres zig
Last synced: about 1 month ago
JSON representation
experiment with listening to table updates in postgres
- Host: GitHub
- URL: https://github.com/jmatth11/db_listener
- Owner: jmatth11
- License: gpl-3.0
- Created: 2024-10-01T21:59:22.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T21:58:36.000Z (3 months ago)
- Last Synced: 2024-11-12T22:32:30.970Z (3 months ago)
- Topics: db, notifications, postgres, zig
- Language: Zig
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DB listener
Sets up listeners on all tables in a postgres database to be notified of insert/update/delete.
The program tears down listeners once brought down.
You can use this info to display new or updated entries happening to your database in real time as a kind of local monitoring system.
This was driven by the desire to debug DB changes easier for local development.
This program also spins up a small server that allows for a websocket connection to get updates on the DB notifications. You can find a default implementation [here](https://github.com/jmatth11/db_listener_web)
## Demo
https://github.com/user-attachments/assets/e6ab4dd6-138d-4afb-b002-115766010c2f