1
Fork 0

add directions to order by

This commit is contained in:
Jake Wheat 2013-12-13 17:08:10 +02:00
parent 2c1eedb70f
commit 1a8551825d
5 changed files with 27 additions and 10 deletions
Language/SQL/SimpleSQL

View file

@ -6,6 +6,7 @@
> ,TableRef(..)
> ,JoinType(..)
> ,JoinCondition(..)
> ,Direction(..)
> ) where
@ -30,9 +31,11 @@
> ,qeWhere :: Maybe ScalarExpr
> ,qeGroupBy :: [ScalarExpr]
> ,qeHaving :: Maybe ScalarExpr
> ,qeOrderBy :: [ScalarExpr]
> ,qeOrderBy :: [(ScalarExpr,Direction)]
> } deriving (Eq,Show)
> data Direction = Asc | Desc deriving (Eq,Show)
> makeSelect :: QueryExpr
> makeSelect = Select {qeSelectList = []
> ,qeFrom = []