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

Napkin.Render.CommonPostgres

Description

 
Synopsis

Documentation

hasType :: Doc -> Doc -> Doc #

renderFun :: forall b. RenderSpecs b => b -> ExternFun -> Doc #

funcall :: forall b. ToDbBackend b => Ref Function -> Doc -> Doc #

funcall' :: forall b. ToDbBackend b => String -> Doc -> Doc #

funcallArgs :: forall b. (RenderSql SExp b, ToDbBackend b) => b -> Ref Function -> [SExp] -> Doc #

renderOver :: forall b. RenderSpecs b => b -> WOver -> Doc #

rendSimpleFun :: forall b. RenderSpecs b => b -> Ref Function -> [SExp] -> Doc #

renderExp :: forall b. RenderSpecs b => b -> SExp -> Doc #

renderRef :: forall b a. ToDbBackend b => Ref a -> Doc #

rendVal :: forall b. RenderSpecs b => b -> Value -> Doc #

renderQuery :: forall b. RenderSpecs b => b -> Query -> Doc #

flattenUnions :: Query -> ([Query], [UnionType]) #

Pull all surface-level unions into a list of queries and list of connecting union operators

renderAliasRef' :: forall b a. ToDbBackend b => Ref a -> Doc #

renderWith :: forall b. RenderSpecs b => b -> WithClauses -> Doc #

renderFrom :: forall b. RenderSpecs b => b -> From -> Doc #

renderRelation :: forall b. RenderSpecs b => b -> Relation -> Doc #

renderWhere :: forall b. RenderSpecs b => b -> SExp -> Doc #

renderHaving :: forall b. RenderSpecs b => b -> SExp -> Doc #

renderGroup :: forall b. RenderSpecs b => b -> [SExp] -> Doc #

renderRenameTable :: forall b. (RenderSql (Ref Table) b, RenderSpecs b) => b -> RenameTable -> Doc #

renderCreateTable :: (RenderSql (Ref Table) backend, RenderSql Query backend) => backend -> CreateTable meta -> Doc #

renderCreateViewAs :: (RenderSql (Ref Table) backend, RenderSql Query backend) => backend -> CreateView meta -> Doc #

renderDropTable :: RenderSql (Ref Table) backend => backend -> DropTable -> Doc #

renderDropView :: RenderSql (Ref Table) backend => backend -> DropView -> Doc #

renderInsertIntoQuery :: (RenderSql (Ref Table) backend, RenderSql Query backend) => backend -> InsertIntoQuery -> Doc #

renderDeleteFrom :: (RenderSql (Ref Table) backend, RenderSql SExp backend) => backend -> DeleteFrom -> Doc #

renderObject :: (RenderSql (Ref Table) backend, RenderSql (Ref Schema) backend, RenderSql (Ref Database) backend) => backend -> Object -> Doc #

renderActor :: p -> Actor -> Doc #

renderGrant :: (RenderSql Privilege backend, RenderSql Object backend, RenderSql Actor backend) => backend -> Grant -> Doc #