Safe Haskell | Safe-Inferred |
---|
Language.SQL.SimpleSQL.Pretty
Description
These is the pretty printing functions, which produce SQL source from ASTs. The code attempts to format the output in a readable way.
- prettyQueryExpr :: QueryExpr -> String
- prettyScalarExpr :: ScalarExpr -> String
- prettyQueryExprs :: [QueryExpr] -> String
Documentation
prettyQueryExpr :: QueryExpr -> StringSource
Convert a query expr ast to concrete syntax.
prettyScalarExpr :: ScalarExpr -> StringSource
Convert a scalar expr ast to concrete syntax.
prettyQueryExprs :: [QueryExpr] -> StringSource
Convert a list of query exprs to concrete syntax. A semi colon is inserted after each query expr.