| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.SqlLiterals
Description
Rendering Haskell values as inline SQL literals for statements that cannot use parameter binding, such as migrations and seed upserts.
Synopsis
- textLiteral :: Text -> Text
- quoteIdentifier :: Text -> Text
- doubleLiteral :: Double -> Text
- intLiteral :: Integral a => a -> Text
Documentation
Source #textLiteral :: Text -> Text
A single-quoted SQL text literal, escaping embedded quotes.
Source #quoteIdentifier :: Text -> Text
A double-quoted SQL identifier, doubling embedded quotes.
Source #doubleLiteral :: Double -> Text
A double precision literal. Non-finite values are emitted quoted and cast.
Source #intLiteral :: Integral a => a -> Text
An integer literal.