postgresql-simple-0.2.0.1: Mid-Level PostgreSQL client library

Stabilityexperimental
Maintainer[email protected]
Safe HaskellSafe-Infered

Database.PostgreSQL.Simple.Notification

Description

Support for receiving asynchronous notifications via PostgreSQL's Listen/Notify mechanism. See http://www.postgresql.org/docs/9.1/static/sql-notify.html for more information.

Synopsis

Documentation

getNotification :: Connection -> IO NotificationSource

Returns a single notification. If no notifications are available, getNotification blocks until one arrives.

getNotificationNonBlocking :: Connection -> IO (Maybe Notification)Source

Non-blocking variant of getNotification. Returns a single notification, if available. If no notifications are available, returns Nothing.