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

Copyright2017 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Database.Relational.Projectable.Unsafe

Description

This module provides unsafe interfaces between projected terms and SQL terms.

Synopsis

Documentation

class SqlContext c where #

Interface to project SQL terms unsafely.

Minimal complete definition

unsafeProjectSqlTerms

Methods

unsafeProjectSqlTerms :: [StringSQL] -> Record c t #

Unsafely project from SQL expression terms.

class SqlContext c => OperatorContext c #

Constraint to restrict context of full SQL expressions. For example, the expression at the left of OVER clause is not allowed using full SQL expression.

class AggregatedContext ac #

Constraint to restrict context of aggregated SQL context.

data PlaceHolders p #

Placeholder parameter type which has real parameter type arguemnt p.

Constructors

PlaceHolders 

Instances

ProjectableMaybe PlaceHolders #

Control phantom Maybe type in placeholder parameters.