Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Channel = Channel (RawSQL ())
- data Notification = Notification {}
- listen :: (HasCallStack, MonadDB m) => Channel -> m ()
- unlisten :: (HasCallStack, MonadDB m) => Channel -> m ()
- unlistenAll :: (HasCallStack, MonadDB m) => m ()
- notify :: (HasCallStack, MonadDB m) => Channel -> Text -> m ()
Documentation
Representation of notification channel.
data Notification Source #
Representation of a notification sent by PostgreSQL.
Instances
listen :: (HasCallStack, MonadDB m) => Channel -> m () Source #
Start listening for notifications on a given channel.
unlisten :: (HasCallStack, MonadDB m) => Channel -> m () Source #
Stop listening for notifications on a given channel.
unlistenAll :: (HasCallStack, MonadDB m) => m () Source #
Cancel all listener registrations for the current session.