hasql-queue-1.2.0.2: A PostgreSQL backed queue

Safe HaskellNone
LanguageHaskell2010

Hasql.Queue.Low.ExactlyOnce

Synopsis

Documentation

enqueue Source #

Arguments

:: Text

Notification channel name. Any valid PostgreSQL identifier

-> Value a

Payload encoder

-> [a]

List of payloads to enqueue

-> Session () 

Enqueue a payload send a notification on the specified channel.

withDequeue Source #

Arguments

:: Text

Notification channel name. Any valid PostgreSQL identifier

-> Connection

Connection

-> Value a

Payload decoder

-> Int

Batch count

-> (Session [a] -> Session b)

Transaction runner

-> IO b 

withDequeueWith Source #

Arguments

:: WithNotifyHandlers

Event handlers for events that occur as withDequeWith loops

-> Text

Notification channel name. Any valid PostgreSQL identifier

-> Connection

Connection

-> Value a

Payload decoder

-> Int

Batch count

-> (Session [a] -> Session b)

Transaction runner

-> IO b