haskelldb-2.2.4: A library of combinators for generating and executing SQL statements.

Copyright | haskelldb-users@lists.sourceforge.net
License | BSD-style
Maintainer | haskelldb-users@lists.sourceforge.net
Stability | experimental
Portability | non portable
Safe Haskell | None
Language | Haskell98

Database.HaskellDB.PrintQuery

Description

Author : Justin Bailey (jgbailey AT gmail DOT com) Pretty printing for Query, PrimQuery, and SqlSelect values. Useful for debugging the library.

Synopsis

- ppQuery :: Query (Rel r) -> Doc
- ppQueryUnOpt :: Query (Rel r) -> Doc
- ppSelect :: Query (Rel r) -> Doc
- ppSelectUnOpt :: Query (Rel r) -> Doc
- ppSqlSelect :: SqlSelect -> Doc
- ppPrim :: PrimQuery -> Doc
- ppSql :: Query (Rel r) -> Doc
- ppSqlUnOpt :: Query (Rel r) -> Doc

# Documentation

ppQuery :: Query (Rel r) -> Doc Source

Optimize the query and pretty print the primitive representation.

ppQueryUnOpt :: Query (Rel r) -> Doc Source

Pretty print the primitive representation of an unoptimized query.

ppSelect :: Query (Rel r) -> Doc Source

Take a query, turn it into a SqlSelect and print it.

ppSelectUnOpt :: Query (Rel r) -> Doc Source

Take a query, turn it into a SqlSelect and print it, with optimizations.

ppSqlSelect :: SqlSelect -> Doc Source

ppPrim :: PrimQuery -> Doc Source

Pretty print a PrimQuery value.

ppSql :: Query (Rel r) -> Doc Source

Take a query, turn it into a SqlSelect and print it.

ppSqlUnOpt :: Query (Rel r) -> Doc Source

Take a query, turn it into a SqlSelect and print it.