1
Fork 0

small fixes and update changelog

This commit is contained in:
Jake Wheat 2015-08-09 20:13:11 +03:00
parent 322b6f200d
commit c35ea6e08b
4 changed files with 13 additions and 10 deletions

View file

@ -1773,7 +1773,7 @@ slightly hacky parser for signed integers
----------------------------- -----------------------------
= access control = transaction management
> startTransaction :: Parser Statement > startTransaction :: Parser Statement
> startTransaction = StartTransaction <$ keywords_ ["start","transaction"] > startTransaction = StartTransaction <$ keywords_ ["start","transaction"]

View file

@ -190,7 +190,7 @@
> | QName String > | QName String
> | UQName String > | UQName String
> | DQName String String String > | DQName String String String
> -- ^ dialect quoted name, the fields are start quote, end quote and the string itself, e.g. `something` is parsed to DQName "`" "`" "something, and $a$ test $a$ is parsed to DQName "$a$" "$a" " test " > -- ^ dialect quoted name, the fields are start quote, end quote and the string itself, e.g. `something` is parsed to DQName "`" "`" "something, and $a$ test $a$ is parsed to DQName "$a$" "$a$" " test "
> deriving (Eq,Show,Read,Data,Typeable) > deriving (Eq,Show,Read,Data,Typeable)
> -- | Represents a type name, used in casts. > -- | Represents a type name, used in casts.
@ -419,7 +419,7 @@ I'm not sure if this is valid syntax or not.
> -- probably won't do character sets, collations > -- probably won't do character sets, collations
> -- and translations because I think they are too far from > -- and translations because I think they are too far from
> -- reality > -- reality
> {- | CreateCharacterSet > {- | CreateCharacterSet
> | DropCharacterSet > | DropCharacterSet
> | CreateCollation > | CreateCollation
> | DropCollation > | DropCollation

View file

@ -1,15 +1,17 @@
If you need help updating to a new version of simple-sql-parser, 0.5.0 (not released yet, updated to commit 322b6f200d694bff78f6a4a011d7e89d85293731)
please email jakewheatmail@gmail.com or use the github bug tracker,
https://github.com/JakeWheat/simple-sql-parser/issues.
0.5.0 (not released yet, updated to commit dfa84072dce3ac0fb908ede3f5addbbf4c076d79)
add a separate lexer to simplify code and speed up parsing add a separate lexer to simplify code and speed up parsing
replace SqlIndent with new tool, SimpleSqlParserTool (amazing replace SqlIndent with new tool, SimpleSqlParserTool (amazing
name) which can indent, and parse and lex. name) which can indent, and parse and lex.
experiments in new approach to dealing with fixities with separate experiments in new approach to dealing with fixities with separate
pass after parsing pass after parsing
add support for insert, update, delete and truncate dml :add support for insert, update, delete and truncate
add limited support for create schema, plus drop schema ddl: add limited support for create schema, plus drop schema
create, alter and drop table with defaults and constraints
create, alter and drop for domain, view, sequence
limited support for transaction management: start transation,
rollback, commit, savepoint
fix the precendence of operators which was following the weird
postgresql 9.4 and earlier precendences instead of the standard
0.4.1 (commit c156c5c34e91e1f7ef449d2c1ea14e282104fd90) 0.4.1 (commit c156c5c34e91e1f7ef449d2c1ea14e282104fd90)
tested with ghc 7.4.2, 7.6.3, 7.8.4,7.10.0.20150123 tested with ghc 7.4.2, 7.6.3, 7.8.4,7.10.0.20150123
simple demonstration of how dialects could be handled internally simple demonstration of how dialects could be handled internally

View file

@ -418,6 +418,7 @@ readable.
* Hackage: http://hackage.haskell.org/package/simple-sql-parser * Hackage: http://hackage.haskell.org/package/simple-sql-parser
* Repository: https://github.com/JakeWheat/simple-sql-parser * Repository: https://github.com/JakeWheat/simple-sql-parser
* Bug tracker: https://github.com/JakeWheat/simple-sql-parser/issues * Bug tracker: https://github.com/JakeWheat/simple-sql-parser/issues
* Changes: https://github.com/JakeWheat/simple-sql-parser/blob/master/changelog
== Contact == Contact