| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.SqlLiterals
Description
Internal to the arbiter packages. Not covered by the PVP.
Haskell values rendered as inline SQL literals.
Synopsis
- textLiteral :: Text -> Text
- quoteIdentifier :: Text -> Text
- doubleLiteral :: Double -> Text
- intLiteral :: Integral a => a -> Text
- defaultMaxAttemptsSQL :: Text
- attemptsLeftSQL :: Text -> Text
- attemptsSpentSQL :: Text -> Text
- minMaxAttemptsSQL :: Text
- maxIdentifierBytes :: Int
- sharedTable :: Text -> Text -> Text
- lockGroupKeyOnConflictSQL :: Text
- dollarQuote :: Text
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.
defaultMaxAttemptsSQL :: TextSource #
defaultMaxAttempts as a SQL 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.
minMaxAttemptsSQL :: TextSource #
minMaxAttempts as a SQL literal.
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.
The plpgsql function-body delimiter.