opaleye-0.5.2.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Sql

Synopsis

Documentation

showSqlForPostgres :: forall columns. Default Unpackspec columns columns => Query columns -> Maybe String Source #

When Nothing is returned it means that the Query returns zero rows.

Example type specialization:

showSqlForPostgres :: Query (Column a, Column b) -> Maybe String

Assuming the makeAdaptorAndInstance splice has been run for the product type Foo:

showSqlForPostgres :: Query (Foo (Column a) (Column b) (Column c)) -> Maybe String

showSqlForPostgresUnopt :: forall columns. Default Unpackspec columns columns => Query columns -> Maybe String Source #

formatAndShowSQL :: ([PrimExpr], PrimQuery' a, Tag) -> Maybe String Source #

For internal use only. Do not use. Will be deprecated in a future release.