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

Copyrighthaskelldb-users@lists.sourceforge.net
LicenseBSD-style
Maintainerhaskelldb-users@lists.sourceforge.net
Stabilityexperimental
Portabilitynon portable
Safe HaskellNone
LanguageHaskell98

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

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.

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.