hpqtypes-1.4.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.PQTypes.Internal.Notification

Synopsis

Documentation

newtype Channel Source

Representation of notification channel.

Constructors

Channel (RawSQL ()) 

data Notification Source

Representation of a notification sent by PostgreSQL.

Constructors

Notification 

Fields

ntPID :: !CPid

Process ID of notifying server.

ntChannel :: !Channel

Notification channel name.

ntPayload :: !ByteString

Notification payload string.

getNotificationIO :: DBState -> Int -> IO (Maybe Notification) Source

Low-level function that waits for a notification for a given number of microseconds (it uses timeout function internally).