napkin-0.5.14
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Render.Common

Description

 

Documentation

renderAlias :: forall b a. RenderSql a b => (a -> Doc) -> (Ref a -> Doc) -> Alias a -> Doc #

renderNative :: forall b. RenderSql NativeExpr b => b -> NativeExpr -> Doc #

spc :: Doc #

argList :: RenderSql e b => b -> [e] -> Doc #

maybeRender :: (a -> Doc) -> Maybe a -> Doc #

renderError :: Show a => Ref t -> Text -> a -> e #

hCommaSep :: [Doc] -> Doc #

hParList :: [Doc] -> Doc #

type FunRenderer = Ref Function -> [SExp] -> Doc #

Orphan instances

(RenderSql SExp b, RenderSql Name b, RenderSql From b, RenderSql (Alias (Ref Table)) b) => RenderSql UpdateQuery b # 
Instance details

Methods

renderSql :: b -> UpdateQuery -> Doc #

RenderSql (Alias SExp) backend => RenderSql [Alias SExp] backend # 
Instance details

Methods

renderSql :: backend -> [Alias SExp] -> Doc #