add support for values
This commit is contained in:
parent
4330b3d7e0
commit
c52334943f
5 changed files with 18 additions and 4 deletions
Language/SQL/SimpleSQL
|
@ -177,6 +177,9 @@
|
|||
> (vcat $ punctuate comma $ flip map withs $ \(n,q) ->
|
||||
> name n <+> text "as" <+> parens (queryExpr q))
|
||||
> ,queryExpr qe]
|
||||
> queryExpr (Values vs) =
|
||||
> text "values"
|
||||
> <+> nest 7 (commaSep (map (parens . commaSep . map scalarExpr) vs))
|
||||
|
||||
> selectList :: [(Maybe Name, ScalarExpr)] -> Doc
|
||||
> selectList is = commaSep $ map si is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue