Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 2aba9e5

Browse files
committed
Merge branch 'master'
# Conflicts: # demo/js/sqlite-parser-demo.js # package.json # Conflicts: # demo/js/sqlite-parser-demo.js # dist/sqlite-parser-min.js # dist/sqlite-parser.js # lib/parser.js # package.json
2 parents a52c792 + 0d48351 commit 2aba9e5

File tree

14 files changed

+11392
-5481
lines changed

14 files changed

+11392
-5481
lines changed

CHANGELOG.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,23 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased][unreleased]
5-
### Changed
6-
- Created a `tracer` branch to continue developing the `Tracer` class into something viable.
75

8-
## [v0.12.0-beta.1] - 2015-09-29
6+
## [v0.11.1] - 2016-01-29
7+
### Fixed
8+
- Refactor to solve the different issues that come from trying to use unquoted reserved words as
9+
part of table names, column names, aliases, etc... This also addresses issues that came from certain SQLite keywords being fully contained within other keywords (e.g.: `IN` is contained in `INT` which is contained in `INTERSECT`).
10+
11+
``` sql
12+
select intersects inid, innot notin
13+
from fromson nots
14+
where colorwhere IN nots.pon
15+
INTERSECT
16+
select suit, tie from pants;
17+
```
18+
19+
## [v0.11.0] - 2015-09-29
920
### Changed
21+
- Created a `tracer` branch to continue developing the `Tracer` class into something viable.
1022
- `all` keys removed in all places as it has no effect on query results
1123
- function `args` property now always contains an array. when `DISTINCT` is used in function arguments, then a `distinct: true` property is added to the function node.
1224
- any property that was previously attached to a node with a value of `null` is no longer included in the AST. this should reduce the size of the AST considerably with useless information. for example, the `with` property of a `SELECT` statement node.
@@ -431,8 +443,9 @@ All notable changes to this project will be documented in this file.
431443
### Added
432444
- First working version of sqlite-parser
433445

434-
[unreleased]: https://github.com/codeschool/sqlite-parser/compare/v0.12.0-beta.1...HEAD
435-
[v0.12.0-beta.1]: https://github.com/codeschool/sqlite-parser/compare/v0.10.2...v0.12.0-beta.1
446+
[unreleased]: https://github.com/codeschool/sqlite-parser/compare/v0.11.1...HEAD
447+
[v0.11.1]: https://github.com/codeschool/sqlite-parser/compare/v0.11.0...v0.11.1
448+
[v0.11.0]: https://github.com/codeschool/sqlite-parser/compare/v0.10.2...v0.11.0
436449
[v0.10.2]: https://github.com/codeschool/sqlite-parser/compare/v0.9.8...v0.10.2
437450
[v0.9.8]: https://github.com/codeschool/sqlite-parser/compare/v0.9.1...v0.9.8
438451
[v0.9.1]: https://github.com/codeschool/sqlite-parser/compare/v0.8.0...v0.9.1

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ syntax error is produced if an AST cannot be generated.
1616

1717
## Install
1818

19+
**IMPORTANT: If you want intelligent error messages for syntax errors, then use the `v0.11.1` release. If you want the fastest possible version of the parser, with the tradeoff of poor syntax error feedback, use the `v0.12.1` release.**
20+
1921
```
2022
npm install sqlite-parser
2123
```
@@ -139,11 +141,11 @@ and rebuild the `dist/` and `demo/` folders.
139141
### Writing tests
140142

141143
Tests refer to a SQL test file in `test/sql/` and the test name is a
142-
reference to the filename of the test file. For example `super test 2` as a test name in an `it()` block within a `describe()` block with title `parent block` points to the file `test/sql/parent-block/super-test2.sql`.
144+
reference to the filename of the test file. For example `super test 2` as a test name in an `it()` block within a `describe()` block with title `parent block` points to the file `test/sql/parent-block/super-test-2.sql`.
143145

144146
The expected AST that should be generated from `super-test-2.sql` should
145147
be located in a JSON file in the following location:
146-
`test/json/super-test2.json`.
148+
`test/json/super-test-2.json`.
147149

148150
There are three options for the test helpers exposed by `tree`:
149151
- `tree.ok(this, done)` to assert that the test file successfully generates an AST

demo/css/sqlite-parser-demo.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/js/sqlite-parser-demo.js

Lines changed: 19 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sqlite-parser-min.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)