Function notify_with_pool

Source
pub fn notify_with_pool(channel: &str, payload: &str) -> Result<(), Error>
Expand description

Send a notification on a channel using the connection pool

This function sends a notification on the specified channel with the specified payload using the connection pool.

Example:

use sal_postgresclient::notify_with_pool;

notify_with_pool("my_channel", "Hello, world!").expect("Failed to send notification");