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

Portabilitynon portable
Stabilityexperimental
Maintainerhaskelldb-users@lists.sourceforge.net
Safe HaskellNone

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) -> DocSource

Optimize the query and pretty print the primitive representation.

ppQueryUnOpt :: Query (Rel r) -> DocSource

Pretty print the primitive representation of an unoptimized query.

ppSelect :: Query (Rel r) -> DocSource

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

ppSelectUnOpt :: Query (Rel r) -> DocSource

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

ppPrim :: PrimQuery -> DocSource

Pretty print a PrimQuery value.

ppSql :: Query (Rel r) -> DocSource

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

ppSqlUnOpt :: Query (Rel r) -> DocSource

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