Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d8791e7725
|
@ -601,6 +601,7 @@ tref
|
||||||
> *> nonJoinTref)
|
> *> nonJoinTref)
|
||||||
> ,try (TRFunction <$> name
|
> ,try (TRFunction <$> name
|
||||||
> <*> parens (commaSep valueExpr))
|
> <*> parens (commaSep valueExpr))
|
||||||
|
> ,try (TRQualified <$> name <*> (char '.' >> name))
|
||||||
> ,TRSimple <$> name]
|
> ,TRSimple <$> name]
|
||||||
> >>= optionSuffix aliasSuffix
|
> >>= optionSuffix aliasSuffix
|
||||||
> aliasSuffix j = option j (TRAlias j <$> alias)
|
> aliasSuffix j = option j (TRAlias j <$> alias)
|
||||||
|
|
|
@ -229,6 +229,7 @@ which have been changed to try to improve the layout of the output.
|
||||||
> ,nest 5 $ vcat $ punctuate comma $ map tr ts]
|
> ,nest 5 $ vcat $ punctuate comma $ map tr ts]
|
||||||
> where
|
> where
|
||||||
> tr (TRSimple t) = name t
|
> tr (TRSimple t) = name t
|
||||||
|
> tr (TRQualified s t) = name s <> text "." <> name t
|
||||||
> tr (TRLateral t) = text "lateral" <+> tr t
|
> tr (TRLateral t) = text "lateral" <+> tr t
|
||||||
> tr (TRFunction f as) =
|
> tr (TRFunction f as) =
|
||||||
> name f <> parens (commaSep $ map valueExpr as)
|
> name f <> parens (commaSep $ map valueExpr as)
|
||||||
|
|
|
@ -282,6 +282,8 @@ I'm not sure if this is valid syntax or not.
|
||||||
> -- | Represents a entry in the csv of tables in the from clause.
|
> -- | Represents a entry in the csv of tables in the from clause.
|
||||||
> data TableRef = -- | from t
|
> data TableRef = -- | from t
|
||||||
> TRSimple Name
|
> TRSimple Name
|
||||||
|
> -- | from s.t
|
||||||
|
> | TRQualified Name Name
|
||||||
> -- | from a join b
|
> -- | from a join b
|
||||||
> | TRJoin TableRef JoinType TableRef (Maybe JoinCondition)
|
> | TRJoin TableRef JoinType TableRef (Maybe JoinCondition)
|
||||||
> -- | from (a)
|
> -- | from (a)
|
||||||
|
|
9
TODO
9
TODO
|
@ -13,6 +13,7 @@ haddock review
|
||||||
spell check
|
spell check
|
||||||
update changelog
|
update changelog
|
||||||
update website text
|
update website text
|
||||||
|
regenerate the examples on the index.txt
|
||||||
|
|
||||||
= Later general tasks:
|
= Later general tasks:
|
||||||
|
|
||||||
|
@ -30,6 +31,8 @@ testing
|
||||||
|
|
||||||
review tests to copy from hssqlppp
|
review tests to copy from hssqlppp
|
||||||
|
|
||||||
|
add lots more tests using SQL from the xb2 manual
|
||||||
|
|
||||||
much more table reference tests, for joins and aliases etc.?
|
much more table reference tests, for joins and aliases etc.?
|
||||||
|
|
||||||
review internal sql collection for more syntax/tests
|
review internal sql collection for more syntax/tests
|
||||||
|
@ -166,3 +169,9 @@ db2?
|
||||||
maybe later: other dml
|
maybe later: other dml
|
||||||
insert, update, delete, truncate, merge + set, show?
|
insert, update, delete, truncate, merge + set, show?
|
||||||
copy, execute?, explain?, begin/end/rollback?
|
copy, execute?, explain?, begin/end/rollback?
|
||||||
|
|
||||||
|
big feature summary:
|
||||||
|
1. dialects
|
||||||
|
2. position annotation
|
||||||
|
3. dml
|
||||||
|
4. quasiquotes
|
||||||
|
|
|
@ -20,6 +20,9 @@ expression
|
||||||
> ,("select a from t,u"
|
> ,("select a from t,u"
|
||||||
> ,ms [TRSimple "t", TRSimple "u"])
|
> ,ms [TRSimple "t", TRSimple "u"])
|
||||||
|
|
||||||
|
> ,("select a from s.t"
|
||||||
|
> ,ms [TRQualified "s" "t"])
|
||||||
|
|
||||||
these lateral queries make no sense but the syntax is valid
|
these lateral queries make no sense but the syntax is valid
|
||||||
|
|
||||||
> ,("select a from lateral a"
|
> ,("select a from lateral a"
|
||||||
|
|
Loading…
Reference in a new issue