Function notify

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

Send a notification on a channel

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

Example:

use sal_postgresclient::notify;

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