Expand description
PostgreSQL Table Listener
This module provides PostgresTableListener, which listens for changes in specified database tables.
It uses PostgreSQL triggers and LISTEN/NOTIFY to capture and relay events asynchronously.
§Features
- Monitors specified tables for
INSERT,UPDATE, andDELETEoperations. - Captures changes at the column level.
- Uses PostgreSQL triggers and functions for efficient event detection.
- Sends notifications through async channels.
- Provides a structured API to start and stop listeners.
§Dependencies
sqlxfor database interactiontokiofor async executionserdeandserde_jsonfor JSON serializationtracingfor logging