Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.PQTypes.Notification
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.
Constructors
Notification | |
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.