1
Fork 0
Commit graph

161 commits

Author SHA1 Message Date
Jake Wheat 4e09fe9f45 get old lexing code working again, now only 3 tests fail 2024-01-10 11:28:34 +00:00
Jake Wheat 55a7537108 clean up some warnings, remove parsec dep, fix a temp commented out test 2024-01-10 09:34:17 +00:00
Jake Wheat ab687318fb checkpoint during parser conversion to megaparsec 2024-01-10 07:40:24 +00:00
Jake Wheat 9396aa8cba switch in megaparsec with stub lexing code 2024-01-09 17:53:12 +00:00
Jake Wheat ec8ce0243e switch from literate to regular haskell source 2024-01-09 00:07:47 +00:00
Matei Adriel f180d1070b
Add non-comma separated constraint dialect toggle 2024-01-09 00:25:51 +01:00
Matei Adriel 51157d502e
Parse constraints not separated by comma 2024-01-09 00:18:24 +01:00
Matei Adriel d53afd905e
Add autoincrement option to dialect 2024-01-08 22:14:19 +01:00
Matei Adriel c997e3196c
Support autoincrement columns 2024-01-08 22:14:19 +01:00
Bartosz Wójcik 80e79ced2e Small editorial 2021-12-02 17:04:01 +01:00
Bartosz Wójcik 61275461b5 Added tests for new added sqlserver dialect syntax. 2021-12-02 16:50:35 +01:00
Jake 05481371dd add schema support for create index referenced table, and add some tests 2021-10-19 16:32:25 +01:00
Jake 46a83fe866 add a couple of extra empty statement tests 2021-10-19 16:14:05 +01:00
Ignat Insarov 0aa28ff96a Fix handling of empty statements. 2020-12-20 20:26:34 +05:00
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 86f5e203af add iden keywords and app keywords to the dialect 2019-09-01 09:34:10 +01:00
Jake Wheat 1a1913e7b8 example of a custom dialect which allows date('xxx') syntax by removing 'date' from the list of keywords 2019-08-31 13:50:12 +01:00
Jake Wheat 206982cd0a fix error message in simple sql parser when not parsing from file 2019-08-31 13:43:37 +01:00
Jake Wheat 4c8f612f56 fix some warnings, small tweaks to the build 2019-08-31 13:41:07 +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 3707a09cb8 allow current_timestamp to be parsed, bump version 2019-08-31 10:08:02 +01:00
Jake Wheat ce0eeb392a fix parsing of quoted keywords 2019-08-31 09:13:09 +01:00
Jake Wheat 525a1a8652 fixes to docs 2019-07-07 13:46:39 +01:00
Jake Wheat e54cfee62b work on documentation for new release 2019-07-07 12:54:22 +01:00
Grigory Bordyugov fd8356aa1b read stdin 2018-11-27 17:54:53 +01:00
Jake Wheat 25982a78db check with stackage/ghc 8.2.1 snapshot 2017-08-05 12:43:56 +03:00
Grigory Bordyugov 58024e417e dialect variable in SimpleSqlParserTool.lhs 2017-02-09 13:15:23 +01:00
Grigory Bordyugov 9e24a308e7 tools/SimpleSqlParserTool.lhs fix 2017-02-09 11:46:49 +01:00
Jake Wheat ff3dcb814c add support for oracle type size units 'char' and 'byte', example: varchar2(55 byte) 2016-08-10 11:27:30 +03: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 92c537fce2 move #iden to sql server dialect 2016-02-21 23:50:23 +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 c0b4358d89 parse functions whose name is a keyword 2016-02-18 20:37:12 +02:00
Jake Wheat ba55859dd7 special case in the lexer to support postgres 1..2 2016-02-18 20:29:45 +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 31f9912faa lexer tweaks
refactor dollarstring parser
fix to not allow three or more adjacent colons in postgres dialect
2016-02-15 20:34:58 +02:00
Jake Wheat a4d91b3e44 add support for odbc symbols: {} in lexer 2016-02-15 20:33:37 +02:00
Jake Wheat 9adce162e5 add support for [] quoted identifiers and for #var, @var 2016-02-15 20:33:11 +02:00
Jake Wheat b22cde4100 add support for @var and #var in sqlserver and oracle dialects respectively 2016-02-15 20:32:26 +02:00
Jake Wheat 9fd2970f26 work on lexing: error cases
fix so following a number with either . or e or E without whitespace
  will cause a lexing error
remove */ from symbols in postgres (although postgres strictly
  speaking allows this I think, it is not a good idea)
reject */ anywhere with an error
reject ||| (or more pipes) in ansi, etc. dialects instead of trying to
  parse it as something like '||', '|'
2016-02-15 20:31:06 +02:00
Jake Wheat 4bca2fa2ec work on lexing
add utility function to tell if two tokens will pretty print then lex
back to the same two tokens or not

add notes for some final missing lexing bits that are in hssqlppp

add token combo tests for postgres

add start of sql server, oracle and odbc lexing tests
2016-02-15 20:20:24 +02:00
Jake Wheat 47198c78c1 add tests for + - followed by comment edge cases 2016-02-13 20:38:49 +02:00
Jake Wheat c24008444c work on postgres operator parsing 2016-02-13 20:28:12 +02:00
Jake Wheat 5084c0c3ab add lexing for \' only in e' strings and dollar strings in pg dialect 2016-02-13 17:07:27 +02:00