relational-query-0.0.1.6: Typeful, Modular, Relational, algebraic query engine

Portabilityunknown
Stabilityexperimental
Maintainerex8k.hibino@gmail.com
Safe HaskellSafe-Inferred

Database.Relational.Query.Expr.Unsafe

Contents

Description

This module defines phantom typed SQL expression object. Contains internal structure and unsafe interfaces.

Synopsis

Typed SQL Expression

newtype Expr p a Source

Phantom typed SQL expression object. Project from projection type p.

Constructors

Expr StringSQL 

Instances

ProjectableMaybe (Expr p)

Control phantom Maybe type in SQL expression type Expr.

ProjectableShowSql (Expr p)

Unsafely get SQL term from Expr.

SqlProjectable (Expr p)

Unsafely make Expr from SQL terms.

Show (Expr p a)

Show expression.

sqlExpr :: Expr p t -> StringSQLSource

Get SQL expression from typed object.

showExpr :: Expr p t -> StringSource

Get SQL string from typed object.