hasql-queue-1.2.0.1: A PostgreSQL backed queue

Safe HaskellNone
LanguageHaskell2010

Hasql.Queue.High.ExactlyOnce

Description

A high throughput Session based API for a PostgreSQL backed queue.

Synopsis

Documentation

enqueue Source #

Arguments

:: Value a

Payload encoder

-> [a]

List of payloads to enqueue

-> Session () 

Enqueue a payload.

dequeue Source #

Arguments

:: Value a

Payload decoder

-> Int

Element count

-> Session [a] 

Dequeue a list of payloads