hpqtypes-1.5.1.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Notification

Synopsis

Documentation

newtype Channel #

Representation of notification channel.

Constructors

Channel (RawSQL ()) 

listen :: MonadDB m => Channel -> m () #

Start listening for notifications on a given channel.

unlisten :: MonadDB m => Channel -> m () #

Stop listening for notifications on a given channel.

unlistenAll :: MonadDB m => m () #

Cancel all listener registrations for the current session.

notify :: MonadDB m => Channel -> Text -> m () #

Generate a notification on a given channel.