-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handler for LISTEN/NOTIFY notifications
lib/pq currently has a dedicated set of functionality for subscribing to LISTEN/NOTIFY messages, but you have to use it on a separate connection. This commit adds a simple way to register a handler for notifications that is on an ordinary database connection. This is useful if a user wants to LISTEN to a channel on the same connection as their ordinary database connection.
- Loading branch information
1 parent
1172019
commit 04f58ea
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters