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