fixes to haddock and update changelog
This commit is contained in:
parent
3b2730fd99
commit
692f8f84ad
|
@ -28,8 +28,9 @@
|
||||||
> ) where
|
> ) where
|
||||||
|
|
||||||
|
|
||||||
> -- | Represents a value expression, i.e. expressions in select
|
> -- | Represents a value expression. This is used for the expressions
|
||||||
> -- lists, where, group by, order by, etc.
|
> -- in select lists. It is also used for expressions in where, group
|
||||||
|
> -- by, having, order by and so on.
|
||||||
> data ValueExpr
|
> data ValueExpr
|
||||||
> = -- | a numeric literal optional decimal point, e+-
|
> = -- | a numeric literal optional decimal point, e+-
|
||||||
> -- integral exponent, e.g
|
> -- integral exponent, e.g
|
||||||
|
@ -189,10 +190,9 @@
|
||||||
> --
|
> --
|
||||||
> -- * a common table expression (with);
|
> -- * a common table expression (with);
|
||||||
> --
|
> --
|
||||||
> -- * a values expression;
|
> -- * a table value constructor (values (1,2),(3,4)); or
|
||||||
> --
|
> --
|
||||||
> -- * or the table syntax - 'table t', shorthand for 'select * from
|
> -- * an explicit table (table t).
|
||||||
> -- t'.
|
|
||||||
> data QueryExpr
|
> data QueryExpr
|
||||||
> = Select
|
> = Select
|
||||||
> {qeSetQuantifier :: SetQuantifier
|
> {qeSetQuantifier :: SetQuantifier
|
||||||
|
@ -233,7 +233,19 @@ TODO: add queryexpr parens to deal with e.g.
|
||||||
I'm not sure if this is valid syntax or not.
|
I'm not sure if this is valid syntax or not.
|
||||||
|
|
||||||
> -- | Helper/'default' value for query exprs to make creating query
|
> -- | Helper/'default' value for query exprs to make creating query
|
||||||
> -- expr values a little easier.
|
> -- expr values a little easier. It is defined like this:
|
||||||
|
> --
|
||||||
|
> -- > makeSelect :: QueryExpr
|
||||||
|
> -- > makeSelect = Select {qeSetQuantifier = All
|
||||||
|
> -- > ,qeSelectList = []
|
||||||
|
> -- > ,qeFrom = []
|
||||||
|
> -- > ,qeWhere = Nothing
|
||||||
|
> -- > ,qeGroupBy = []
|
||||||
|
> -- > ,qeHaving = Nothing
|
||||||
|
> -- > ,qeOrderBy = []
|
||||||
|
> -- > ,qeOffset = Nothing
|
||||||
|
> -- > ,qeFetch = Nothing}
|
||||||
|
|
||||||
> makeSelect :: QueryExpr
|
> makeSelect :: QueryExpr
|
||||||
> makeSelect = Select {qeSetQuantifier = All
|
> makeSelect = Select {qeSetQuantifier = All
|
||||||
> ,qeSelectList = []
|
> ,qeSelectList = []
|
||||||
|
|
2
TODO
2
TODO
|
@ -4,6 +4,8 @@ New fixity code + extensive tests.
|
||||||
check fixity in query expr level?
|
check fixity in query expr level?
|
||||||
check fixity in tablerefs
|
check fixity in tablerefs
|
||||||
|
|
||||||
|
try and use the proper css theme
|
||||||
|
|
||||||
release checklist:
|
release checklist:
|
||||||
hlint
|
hlint
|
||||||
haddock review
|
haddock review
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
0.3.0-dev (commit b68c116839cf852832cef28f3cd479ac7622293c)
|
0.3.0-dev (commit 3b2730fd9962b9a51ad659191ac842364dab86b4)
|
||||||
|
rename ScalarExpr -> ValueExpr
|
||||||
rename Duplicates to SetQuantifier
|
rename Duplicates to SetQuantifier
|
||||||
rename qeDuplicates to qeSetQuantifier
|
rename qeDuplicates to qeSetQuantifier
|
||||||
rename OrderField to SortSpec
|
rename OrderField to SortSpec
|
||||||
|
|
Loading…
Reference in a new issue