arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.SqlLiterals

Description

Internal to the arbiter packages. Not covered by the PVP.

Haskell values rendered as inline SQL literals.

Synopsis

Documentation

textLiteral :: Text -> TextSource #

A single-quoted SQL text literal, escaping embedded quotes.

quoteIdentifier :: Text -> TextSource #

A double-quoted SQL identifier, doubling embedded quotes.

doubleLiteral :: Double -> TextSource #

A double precision literal. Non-finite values are emitted quoted and cast.

intLiteral :: Integral a => a -> TextSource #

An integer literal.

attemptsLeftSQL :: Text -> TextSource #

Whether a row has attempts left. col prefixes each column.

attemptsSpentSQL :: Text -> TextSource #

Whether a row has spent its attempts. col prefixes each column.

maxIdentifierBytes :: IntSource #

The PostgreSQL identifier limit in bytes (NAMEDATALEN - 1).

sharedTable :: Text -> Text -> TextSource #

A schema-qualified shared table. The table name stays unquoted.

lockGroupKeyOnConflictSQL :: TextSource #

An ON CONFLICT clause that row-locks an existing group key and writes nothing. DO UPDATE takes the lock. WHERE FALSE skips the write.

dollarQuote :: TextSource #

The plpgsql function-body delimiter.