napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Render.Common

Documentation

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

renderAliasRef :: forall {k} (a :: k). Dialect -> Ref a -> Doc #

spc :: Doc #

renderRef_ :: forall {k} (a :: k). Dialect -> Ref a -> Doc #

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

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

renderError :: forall {k} a (t :: k). Show a => Ref t -> Text -> a -> Doc #

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 -> ME Doc #

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

Methods

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