Copyright | (c) Eitan Chatav 2017 |
---|---|
Maintainer | [email protected] |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Squeal.PostgreSQL.Render
Contents
Description
Rendering helper functions.
- parenthesized :: ByteString -> ByteString
- (<+>) :: ByteString -> ByteString -> ByteString
- commaSeparated :: [ByteString] -> ByteString
- doubleQuoted :: ByteString -> ByteString
- renderCommaSeparated :: SListI xs => (forall x. expression x -> ByteString) -> NP expression xs -> ByteString
- renderCommaSeparatedMaybe :: SListI xs => (forall x. expression x -> Maybe ByteString) -> NP expression xs -> ByteString
- renderNat :: KnownNat n => proxy n -> ByteString
Render
parenthesized :: ByteString -> ByteString Source #
Parenthesize a ByteString
.
(<+>) :: ByteString -> ByteString -> ByteString Source #
Concatenate two ByteString
s with a space between.
commaSeparated :: [ByteString] -> ByteString Source #
Comma separate a list of ByteString
s.
doubleQuoted :: ByteString -> ByteString Source #
Add double quotes around a ByteString
.
renderCommaSeparated :: SListI xs => (forall x. expression x -> ByteString) -> NP expression xs -> ByteString Source #
Comma separate the renderings of a heterogeneous list.
renderCommaSeparatedMaybe :: SListI xs => (forall x. expression x -> Maybe ByteString) -> NP expression xs -> ByteString Source #