add support for union,intersect,except
This commit is contained in:
parent
64eb5a5c9d
commit
1199342477
4 changed files with 51 additions and 17 deletions
Language/SQL/SimpleSQL
|
@ -119,6 +119,13 @@ back into SQL source text. It attempts to format the output nicely.
|
|||
> ,maybeScalarExpr "limit" lm
|
||||
> ,maybeScalarExpr "offset" off
|
||||
> ]
|
||||
> queryExpr (CombineQueryExpr q1 ct q2) =
|
||||
> sep [queryExpr q1
|
||||
> ,text $ case ct of
|
||||
> Union -> "union"
|
||||
> Intersect -> "intersect"
|
||||
> Except -> "except"
|
||||
> ,queryExpr q2]
|
||||
|
||||
> selectList :: [(Maybe String, ScalarExpr)] -> Doc
|
||||
> selectList is = commaSep $ map si is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue