hpqtypes-1.5.3.0: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Notification

Synopsis

Documentation

newtype Channel Source #

Representation of notification channel.

Constructors

Channel (RawSQL ()) 

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

Start listening for notifications on a given channel.

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

Stop listening for notifications on a given channel.

unlistenAll :: MonadDB m => m () Source #

Cancel all listener registrations for the current session.

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

Generate a notification on a given channel.