Added demo program to show use of LISTEN/NOTIFY.

This commit is contained in:
Anthony Dodd
2020-01-31 16:42:17 -06:00
committed by Ryan Leckey
parent a0da99e128
commit ae7e15cbe3
6 changed files with 89 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ impl PgConnectionExt<PgPoolConnection> for PgPoolConnection {
/// A stream of async database notifications.
///
/// Notifications will always correspond to the channel(s) specified this object is created.
/// Notifications will always correspond to the channel(s) specified when this object was created.
///
/// This listener is bound to the lifetime of its underlying connection. If the connection ever
/// dies, this listener will terminate and will no longer yield any notifications.
@@ -130,7 +130,7 @@ impl PgPoolExt for PgPool {
/// A stream of async database notifications.
///
/// Notifications will always correspond to the channel(s) specified this object is created.
/// Notifications will always correspond to the channel(s) specified when this object was created.
///
/// This listener, as it is built from a `PgPool`, supports auto-reconnect. If the active
/// connection being used ever dies, this listener will detect that event, acquire a new connection