1
Fork 0

add support for subqueries in scalar expressions

This commit is contained in:
Jake Wheat 2013-12-13 20:43:28 +02:00
parent d6d91b1935
commit 00269617b3
4 changed files with 53 additions and 13 deletions
Language/SQL/SimpleSQL

View file

@ -2,6 +2,7 @@
> module Language.SQL.SimpleSQL.Syntax
> (ScalarExpr(..)
> ,TypeName(..)
> ,SubQueryExprType(..)
> ,QueryExpr(..)
> ,makeSelect
> ,Duplicates(..)
@ -26,10 +27,14 @@
> | Parens ScalarExpr
> | Cast ScalarExpr TypeName
> | CastOp TypeName String
> | SubQueryExpr SubQueryExprType QueryExpr
> deriving (Eq,Show)
> data TypeName = TypeName String deriving (Eq,Show)
> data SubQueryExprType = SqExists | SqIn | SqSq | SqAll | SqSome | SqAny
> deriving (Eq,Show)
> data QueryExpr
> = Select
> {qeDuplicates :: Duplicates