refactor the combo query expression parsing and the optional parts of a select query expr
This commit is contained in:
parent
fabc106fd8
commit
8ef799740c
3 changed files with 50 additions and 37 deletions
Language/SQL/SimpleSQL
|
@ -80,6 +80,10 @@
|
|||
> | With [(String,QueryExpr)] QueryExpr
|
||||
> deriving (Eq,Show)
|
||||
|
||||
TODO: add queryexpr parens to deal with e.g.
|
||||
(select 1 union select 2) union select 3
|
||||
I'm not sure if this is valid syntax or not
|
||||
|
||||
> data Duplicates = Distinct | All deriving (Eq,Show)
|
||||
> data Direction = Asc | Desc deriving (Eq,Show)
|
||||
> data CombineOp = Union | Except | Intersect deriving (Eq,Show)
|
||||
|
@ -104,6 +108,9 @@
|
|||
> | JoinQueryExpr QueryExpr
|
||||
> deriving (Eq,Show)
|
||||
|
||||
TODO: add function table ref
|
||||
|
||||
|
||||
> data JoinType = Inner | JLeft | JRight | Full | Cross
|
||||
> deriving (Eq,Show)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue