1
Fork 0
Commit graph

100 commits

Author SHA1 Message Date
Jake Wheat
1be27eca58 rename Duplicates -> SetQuantifier + qeDuplicates -> qeSetQuantifier 2013-12-19 10:34:32 +02:00
Jake Wheat
b631497a04 renames OrderField->SortSpec, InThing->InPredValue 2013-12-18 16:27:06 +02:00
Jake Wheat
b89f2a011c fixes for substring, change the abstract syntax for extract and
substring, and add the addition operators position, convert,
  translate, overlay and trim
2013-12-18 15:51:55 +02:00
Jake Wheat
60cf309953 fix haddock, hlint, rename Prec2TypeName to PrecScaleTypeName 2013-12-17 20:46:29 +02:00
Jake Wheat
e61672ebf8 hlint 2013-12-17 20:27:11 +02:00
Jake Wheat
558d44140a add support for typenames with precision and scale 2013-12-17 19:52:14 +02:00
Jake Wheat
b703e04af3 add syntax for new grouping expressions 2013-12-17 19:17:03 +02:00
Jake Wheat
7d094182b7 add support for multiple case when expressions 2013-12-17 18:42:00 +02:00
Jake Wheat
ebe522b21d add support for nulls first/last 2013-12-17 18:28:31 +02:00
Jake Wheat
e85ab8b831 add names/docs to some of the scalar expr constuctor fields, add partial support for explicit window frames 2013-12-17 17:29:49 +02:00
Jake Wheat
e03090a6a1 add support for rowctor without row, e.g. (1,2) 2013-12-17 16:20:05 +02:00
Jake Wheat
b2728ec9bf add support for ansi standard offset and fetch syntax 2013-12-17 16:00:17 +02:00
Jake Wheat
8093498f2d generalize . to a binary operator 2013-12-17 15:21:43 +02:00
Jake Wheat
8adc169b38 add support for '' in string literals 2013-12-17 15:09:28 +02:00
Jake Wheat
72b67166d9 add support for 'table t' syntax 2013-12-17 13:58:44 +02:00
Jake Wheat
4308acb982 add support for with recursive and column aliases in cte 2013-12-17 13:41:06 +02:00
Jake Wheat
c52334943f add support for values 2013-12-17 13:27:16 +02:00
Jake Wheat
4330b3d7e0 add support for quoted identifiers 2013-12-17 13:21:36 +02:00
Jake Wheat
045f2be825 support simple interval literal interval '3 days' and rename CastOp to TypedLit 2013-12-17 12:51:14 +02:00
Jake Wheat
939189a04f partial support for lateral 2013-12-17 12:45:32 +02:00
Jake Wheat
d49b3ddb99 add support for functions in tablerefs 2013-12-17 12:33:33 +02:00
Jake Wheat
3f0ff9aec0 small tidyups 2013-12-14 20:20:41 +02:00
Jake Wheat
b6633bf73c reformat 2013-12-14 16:58:35 +02:00
Jake Wheat
97189fb802 tweak some of the pretty printing 2013-12-14 16:35:36 +02:00
Jake Wheat
4acc59000a improve the pretty printing formatting 2013-12-14 14:24:49 +02:00
Jake Wheat
b001276337 work on haddock and a few renames 2013-12-14 14:10:46 +02:00
Jake Wheat
c28db4d470 add haddock, reorder the fields in binop and jointref to be more natural 2013-12-14 13:33:15 +02:00
Jake Wheat
3f08adb4c5 work on the semicolon handling 2013-12-14 11:59:29 +02:00
Jake Wheat
0da39d4498 small reformatting 2013-12-14 01:14:23 +02:00
Jake Wheat
931272d1db add with expressions, all tpch appear to parse correct, some of the later ones pretty print badly though 2013-12-14 00:58:12 +02:00
Jake Wheat
15c83555ff add support for full table aliases 2013-12-14 00:37:34 +02:00
Jake Wheat
d005dc1706 work on parsing tpch
add parse function for parsing multiple query expressions separated by
  semicolon
add parser for substring operator
tweak the layout for pretty printing binary operators
add sql file with tpch queries in it
add simple exe to parse and pretty print multiple query expressions
2013-12-14 00:34:05 +02:00
Jake Wheat
f08f4eb13b few small fixes
untested fix for case insensitive keywords
add partial support for interval literals
fix bug in prefix operator cast parsing
2013-12-14 00:07:45 +02:00
Jake Wheat
9c4719bda3 add support for union all and union corresponding and for intersect and except 2013-12-13 23:49:22 +02:00
Jake Wheat
1199342477 add support for union,intersect,except 2013-12-13 23:41:12 +02:00
Jake Wheat
64eb5a5c9d add window functions (without frames 2013-12-13 23:31:36 +02:00
Jake Wheat
81e7aa818b add support for extended aggregate syntax 2013-12-13 23:18:30 +02:00
Jake Wheat
5e56a4b560 implement extract 2013-12-13 22:38:43 +02:00
Jake Wheat
a001d120c1 tidyups 2013-12-13 22:25:22 +02:00
Jake Wheat
4f73f4ec44 split the Op ctor into binop,prefixop, postfixop and specialop
add support for is null
2013-12-13 21:26:14 +02:00
Jake Wheat
955658c41f add support for between 2013-12-13 21:13:36 +02:00
Jake Wheat
386d835cf8 add support for in list, and fix code for in query expr 2013-12-13 21:00:06 +02:00
Jake Wheat
00269617b3 add support for subqueries in scalar expressions 2013-12-13 20:43:28 +02:00
Jake Wheat
d6d91b1935 add casts, disable failing tests temporarily 2013-12-13 20:24:20 +02:00
Jake Wheat
aa26603a0c start work on cast expressions, add lots more test targets 2013-12-13 18:50:41 +02:00
Jake Wheat
a81f62b940 add support for limit and offset 2013-12-13 17:27:02 +02:00
Jake Wheat
1a8551825d add directions to order by 2013-12-13 17:08:10 +02:00
Jake Wheat
2c1eedb70f implement complete base 10 number parser, shorten some syntax names 2013-12-13 17:00:22 +02:00
Jake Wheat
63fe9778f7 split number literals and string literals 2013-12-13 16:44:00 +02:00
Jake Wheat
afc6933f64 put the modules in a better path 2013-12-13 16:04:48 +02:00
Renamed from Pretty.lhs (Browse further)