Jake Wheat
9df04a3040
fix some imports and exports, particularly stop reexporting all the dialect stuff everywhere
2019-09-01 11:52:17 +01:00
Jake Wheat
7f1351c123
tweak haddock, remove CPP (only causes a warning with ghc 8.2.1), other small tweaks
2019-09-01 10:04:04 +01:00
Jake Wheat
ee432d79ba
update handling of fetch first and limit wrt dialects
2019-08-31 12:38:24 +01:00
Jake Wheat
eb45eb8705
start refactoring the dialect support, and work on the keyword handling
2019-08-31 11:57:28 +01:00
Jake Wheat
9f4a457a4d
fix extra 'as' when printing ctes
2019-08-31 09:30:42 +01:00
Jonas Scholl
9631a3d1ba
Update for base-4.11 compatibility.
2018-07-11 22:37:18 +02:00
Jake Wheat
7f08e51c74
add comments to statement syntax
2016-02-22 23:28:59 +02:00
Jake Wheat
c56a1c8fc8
use explicit data type for sign in interval literals
2016-02-22 23:25:00 +02:00
Jake Wheat
d52b5efc8b
rename CombineQueryExpr to QueryExprSetOp and CombineOp to SetOperatorName
2016-02-22 23:24:43 +02:00
Jake Wheat
a2645ace3f
rename ValueExpr to ScalarExpr
2016-02-22 23:24:25 +02:00
Jake Wheat
3f7e0123a2
a few documentation and website tweaks
2016-02-22 23:16:36 +02:00
Jake Wheat
83b16edb1f
add support for odbc outer join syntax
2016-02-21 23:48:55 +02:00
Jake Wheat
c8d745fd28
add support for odbc scalar exprs
2016-02-21 23:43:19 +02:00
Jake Wheat
d8b351472f
add positional arg to the syntax and parser
2016-02-21 23:36:47 +02:00
Jake Wheat
ee4098e189
lexer tweaks
...
combine hostparam with prefixed variable
refactor some of the lexing code slightly
fix error in tests where it was using the ansi dialect instead of
postgres for testing :::, etc.
2016-02-15 20:35:38 +02:00
Jake Wheat
a59f19aae9
don't unescape quotes in string literals and identifiers
2016-02-13 15:54:40 +02:00
Jake Wheat
aa5c2e89c7
refactor the identifier syntax
2016-02-12 14:13:47 +02:00
Jake Wheat
52f035b718
new syntax for names and string literals
2016-02-12 13:09:58 +02:00
Jake Wheat
1b4eefc431
refactor dialect into a non enum and separate to own file
2016-02-12 12:51:06 +02:00
Jake Wheat
c102528d5f
add create and drop assertion
2015-08-16 20:03:02 +03:00
Jake Wheat
3c0788af6e
add support for create/drop role, grant, revoke
2015-08-15 21:01:48 +03:00
Jake Wheat
666d1f877f
add basic transction control
2015-08-04 22:53:08 +03:00
Jake Wheat
a9d51d1ebb
add create,alter,drop sequence
2015-08-04 22:35:51 +03:00
Jake Wheat
9aab04b189
add create, alter, drop domain
2015-08-04 22:08:32 +03:00
Jake Wheat
c2810cddd2
add support for create and drop view
2015-08-02 23:52:01 +03:00
Jake Wheat
8291fbaa44
add drop table support
2015-08-02 23:27:09 +03:00
Jake Wheat
f0baa3c37b
add alter table variations:
...
set default
drop default
set not null
drop not null
set data type
drop column
add constraint
drop constraint
fix bug where generated didn't have to be followed with 'always' or
'by default' for identities in create table
2015-08-02 23:22:06 +03:00
Jake Wheat
f6477ac214
add alter table add column support
2015-08-02 20:56:39 +03:00
Jake Wheat
fa1df4c7a2
add table constraint definitions to create table
2015-08-02 20:36:05 +03:00
Jake Wheat
e6e8264b3d
add support for column constraints in create table
2015-08-02 19:27:39 +03:00
Jake Wheat
4f80ec96d4
add generation clause support to create table
2015-08-02 18:14:45 +03:00
Jake Wheat
e495e240c0
add default and identity to create table
2015-08-02 18:04:40 +03:00
Jake Wheat
6802aaef5a
add simple create table support
2015-08-01 23:16:26 +03:00
Jake Wheat
dfa84072dc
start adding basic dml
...
parser and pretty printer for statements
add query statement
add support for
insert
update
delete
truncate
bonus ddl:
limited create schema
drop schema
add grammar notes to the new test files
2015-08-01 20:26:00 +03:00
Han Joosten
dc5ca57124
Introduced QEComment, constructor, likewise the VEComment constructor
2015-03-14 14:28:05 +01:00
Han Joosten
258eff5298
Introduction of Comment in syntax, to facilitate comments in programatically generated SQL
2015-03-14 12:40:35 +01:00
Jake Wheat
c1c514af35
example how to switch parsing and pretty printing depending on dialect
2014-06-28 15:41:11 +03:00
Jake Wheat
7d63c8f8e5
start on dialect prototype code
2014-06-27 12:19:15 +03:00
Jake Wheat
dbd48baaa1
rename LobTypeName to PrecLengthTypeName
...
rename LobMultiplier and LobUnits to PrecMultiplier and PrecUnits
remove support for limit syntax
remove the unreserved keyword list since it isn't useful
tests for row value constructors
tests for table value constructors
tests for query specifications
tests for explicit table
work on tests for setops,order by,offset,fetch and sort specification
2014-04-20 23:14:55 +03:00
Jake Wheat
9b2ba2fb36
remove ref typename for consistency
...
support t and p multipliers in lob lengths
update a few tests
2014-04-20 19:24:03 +03:00
Jake Wheat
7a7f4ba7aa
work around for haddock refusal to parse literal comment lines with *
...
in first character position
get rid of code_units since these are not in sql2011
implement next value for
parse the nullary functions with reserved names
updates to the sql2003 file
2014-04-19 21:17:19 +03:00
Jake Wheat
7057241974
add filter and within group aggregates
2014-04-19 18:01:49 +03:00
Jake Wheat
fdb90c0440
change collate and in chartype to be a list of names
...
rearrange and add notes to the parser
2014-04-19 12:47:25 +03:00
Jake Wheat
fea6e347bd
change joins so natural is represented by separate field to on/using
...
some fixes and tweaks to the reserved keyword handling, especially in
the typename parser
2014-04-19 11:18:29 +03:00
Jake Wheat
7a84704516
implement reference type name (I think - cannot find any examples or
...
explanation of what it means, didn't try reading the standard
itself, just the grammar)
2014-04-18 21:48:14 +03:00
Jake Wheat
3b86a06e5c
implement complete interval literals
2014-04-18 21:38:24 +03:00
Jake Wheat
f64632bbac
support two double quotes in quoted identifier plus unicode quoted identifier syntax
2014-04-18 21:09:46 +03:00
Jake Wheat
4e1a1da820
basic multiset support
2014-04-18 20:50:24 +03:00
Jake Wheat
2ff8580dbf
complete basic typename support
2014-04-18 19:49:00 +03:00
Jake Wheat
fbdcacc604
modify basic typenames to support dotted names in the syntax
...
add syntax for most of the other kinds of typenames
add pretty printing for these
todo: the parsing and the tests
2014-04-18 17:55:56 +03:00