napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Render.CommonPostgres

Synopsis

Documentation

renderAnnotate :: forall {k} (b :: k). ToDbBackend b => AnnotateTableOrView -> Doc #

hasType :: Doc -> Doc -> Doc #

funcall :: forall {k} (b :: k). ToDbBackend b => Ref Function -> Doc -> Doc #

funcall' :: forall {k} (b :: k). ToDbBackend b => String -> Doc -> Doc #

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

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

renderRef :: forall {k1} {k2} (b :: k1) (a :: k2). ToDbBackend b => Ref a -> Doc #

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

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

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

renderAliasRef' :: forall {k1} {k2} (b :: k1) (a :: k2). ToDbBackend b => Ref a -> Doc #

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

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

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

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

renderSetTableSchema :: forall {k} (a :: k) b. (RenderSql (Ref a) b, RenderSql (Ref Table) b, RenderSpecs b) => b -> SetTableSchema -> 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 #