arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

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

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.