1
Fork 0
Commit graph

73 commits

Author SHA1 Message Date
Bartosz Wójcik efd4dea6ff minor enhancements for sqlserver dialect 2021-12-01 21:33:02 +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 ff25dbb880 Merge branch 'fix-empty-statement' 2021-10-19 16:11:38 +01:00
Jake c0b0174613 update dep 2021-10-19 16:07:06 +01:00
Ignat Insarov 0aa28ff96a Fix handling of empty statements. 2020-12-20 20:26:34 +05:00
Jake Wheat 7fbd822fc3 update cabal to split into lib and sections 2020-04-24 18:27:41 +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 2ab4c08a7e update version, and some docs 2019-08-31 16:27:33 +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 4c8f612f56 fix some warnings, small tweaks to the build 2019-08-31 13:41:07 +01:00
Jake Wheat 3707a09cb8 allow current_timestamp to be parsed, bump version 2019-08-31 10:08:02 +01:00
Jake Wheat 8555650583 update build to use new cabal, update stack resolver, add build target for exe 2019-07-07 11:33:02 +01:00
Jake Wheat 908a8156e2 small updates for latest packages, cabal and ghc 2019-07-05 19:19:10 +01:00
Jake Wheat 00433a26e8 update some package versions 2018-09-22 11:37:13 +01:00
Jake Wheat a33de9d7e0 update to lts-9.0 2017-08-05 12:29:33 +03:00
Jake Wheat afe3b72a71 Merge branch '0.4.3' 2017-08-05 12:11:09 +03:00
Jake Wheat 67282108c9 add base version in cabal file for hackage 2017-08-02 22:32:39 +03:00
Jake Wheat 57e5004328 update dependencies 2017-06-27 23:07:56 +03: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 efcb0f78d1 add dependencies back to base 2016-07-12 09:58:34 +03:00
Jake Wheat 6f42a4866a update version to 0.4.2 2016-07-12 09:55:04 +03:00
Jake Wheat b3333b04bc update dependencies so it works with ghc 8 2016-07-12 09:53:24 +03:00
Han Joosten da83bba812 Relax dependency of base, to enable use of stack in combination of GHC 8. 2016-06-07 11:02:59 +02:00
Jake Wheat a2645ace3f rename ValueExpr to ScalarExpr 2016-02-22 23:24:25 +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 2b73907119 rename modules lexer->lex, parser->parse 2016-02-12 12:22:19 +02:00
Jake Wheat 5b786bd11d small tweaks 2016-02-12 11:57:09 +02:00
Jake Wheat 3c0788af6e add support for create/drop role, grant, revoke 2015-08-15 21:01:48 +03:00
Jake Wheat 63a23cabf4 small infrastructure fixes
updates to website text
updates to website generation
add a little makefile
2015-08-15 16:17:12 +03:00
Jake Wheat c479e5e8f8 fix copyright 2015-08-01 23:21:46 +03:00
Jake Wheat 2938f642d3 fix to work on ghc 7.8.4, 7.6.3, plus small tweaks 2015-08-01 21:13:37 +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
Jake Wheat 6fc8869f73 preparation for non-queries
some docs in the lexer
bump the version to 0.5.0
add placeholder files for the planned initial non query support
2015-08-01 18:08:54 +03:00
Jake Wheat 0f1f000ee5 add fixity experiment 2015-08-01 15:58:45 +03:00
Jake Wheat 913fce068b small fixes
work on the haddock
remove the old attoparsec position stuff from the lexer
change the lexer to accept position info in the same way as the parser
replace sqlindent with new test exe which can parse, lex and indent
2015-08-01 12:13:53 +03:00
Jake Wheat 2df76e3095 add separate lexer 2015-08-01 00:04:18 +03:00
Jake Wheat 1364c58534 use tasty for tests 2015-07-31 12:45:51 +03:00
Jake Wheat 43d81f969a update deps so it compiles with 7.4.2 2015-03-14 17:38:00 +02:00
Jake Wheat 7d63c8f8e5 start on dialect prototype code 2014-06-27 12:19:15 +03:00
Jake Wheat 7914898cc8 update to accept latest mtl 2014-06-20 12:27:23 +03:00
Jake Wheat 4704ccc28e create separate module for generic parser combinator utility functions
create separate module for the error formatting wrapper
heavily refactor the typename parser to remove almost all trys,
  convert to applicative only, and left factor nicely
other refactoring to use more idiomatic parsing and to convert to
  applicative only
2014-05-09 21:37:09 +03:00
Jake Wheat 8cabf5abcf remove old 2003 tests
add tests for sort specification
2014-04-20 23:29:22 +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 ccd0e6708f start new file for the sql 2011 tests based on the grammar from the draft standard 2014-04-20 16:13:14 +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 4fa21ceea8 get rid of the string overloads in the tests 2014-04-19 11:45:45 +03:00
Jake Wheat 4989f5251b add Data and Typeable to the syntax 2014-04-10 18:53:11 +03:00
Jake Wheat cc2b494465 remove unused dependency on haskell-src-exts 2013-12-31 13:43:26 +02:00
Jake Wheat fd42a3cd73 remove self dependency for SqlIndent exe in cabal 2013-12-31 12:26:05 +02:00
Jake Wheat 552d3f5383 use Parser type from Text.Parsec.String, make imports explicit 2013-12-31 11:21:03 +02:00