Copyright | 2017 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Database.Relational.Projectable.Unsafe
Description
This module provides unsafe interfaces between projected terms and SQL terms.
Synopsis
- class SqlContext c where
- unsafeProjectSqlTerms :: [StringSQL] -> Record c t
- class SqlContext c => OperatorContext c
- class AggregatedContext ac
- data PlaceHolders p = PlaceHolders
Documentation
class SqlContext c where Source #
Interface to project SQL terms unsafely.
Methods
unsafeProjectSqlTerms :: [StringSQL] -> Record c t Source #
Unsafely project from SQL expression terms.
Instances
SqlContext Aggregated Source # | Unsafely make |
Defined in Database.Relational.Projectable.Instances Methods unsafeProjectSqlTerms :: [StringSQL] -> Record Aggregated t Source # | |
SqlContext Flat Source # | Unsafely make |
Defined in Database.Relational.Projectable.Instances | |
SqlContext OverWindow Source # | Unsafely make |
Defined in Database.Relational.Projectable.Instances Methods unsafeProjectSqlTerms :: [StringSQL] -> Record OverWindow t Source # |
class SqlContext c => OperatorContext c Source #
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.
Instances
OperatorContext Aggregated Source # | full SQL expression is available in Aggregated context |
Defined in Database.Relational.Projectable.Instances | |
OperatorContext Flat Source # | full SQL expression is available in Flat context |
Defined in Database.Relational.Projectable.Instances |
class AggregatedContext ac Source #
Constraint to restrict context of aggregated SQL context.
Instances
AggregatedContext Aggregated Source # |
|
Defined in Database.Relational.Projectable.Instances | |
AggregatedContext OverWindow Source # |
|
Defined in Database.Relational.Projectable.Instances |
data PlaceHolders p Source #
Placeholder parameter type which has real parameter type argument p
.
Constructors
PlaceHolders |