You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 15, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+47-1Lines changed: 47 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,51 @@ All notable changes to this project will be documented in this file.
3
3
4
4
## [Unreleased][unreleased]
5
5
6
+
## [v0.14.0] - 2016-03-11
7
+
### Added
8
+
- Latest version includes smart error functionality from the tracer branch that was not included in the last few versions. The latest release includes the smart syntax functionality now that it is as performant as the previous release that did not include smart errors.
9
+
- Parser can now be invoke synchronously or asynchronously:
- Process is not complete, but as of now most of the parser, tests, and demo are now in ES2015.
38
+
- Publish the browserified bundle in the [sqlite-parser npm package](https://www.npmjs.com/package/sqlite-parser) under `dist/` folder
39
+
- This includes the un-minified `sqlite-parser.js` with sourcemaps and the minified `sqlite-parser-min.js` without sourcemaps (the default file as defined in the `package.json`).
40
+
- Do not publish the intermediate files from the build process to github
41
+
- The `lib/` and `dist/` folders are no longer in version control as a part of this github repository.
42
+
- The `demo/` folder is also removed from the master branch as well and must be built using `grunt demo` to use it (or `grunt live` to build the demo and serve it locally with livereload).
43
+
44
+
### Fixed
45
+
- Add `--cache` flag to pegjs compiler and reduce total rule count to increase performance of tracing parser and smart error functionality.
46
+
- Early results show that `--cache` makes the tracer parser just as fast as the non-tracer branch for a moderate (`~150kB`) increase in file size.
47
+
- Removing the number of whitespace rules reduced the chance of the process running out of memory while parsing larger queries.
48
+
- Massive reduction in bundled parser size
49
+
- To help combat the extra size added from the `--cache` option of pegjs, I reduced the size of the parser from `416.89 kB` to `86.7 kB` (~20% of the original size). I did this by switching pegjs option `--optimize` from `speed` to `size` and modifying [my fork of pegjs)(http://github.com/nwronski/pegjs) to allow rule descriptions to be looked up by rule index instead of by rule name as the `optimize``size` mode required.
50
+
6
51
## [v0.11.3] - 2016-02-02
7
52
### Fixed
8
53
- Added missing binary division operator so that things like this will now correctly parse.
@@ -484,7 +529,8 @@ part of table names, column names, aliases, etc... This also addresses issues th
Copy file name to clipboardExpand all lines: README.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,6 @@
5
5
[](https://github.com/codeschool/sqlite-parser/)
6
6
[](https://github.com/codeschool/sqlite-parser/blob/master/LICENSE)
7
7
8
-
## This branch is a work-in-progress
9
-
_Note: There is a currently a significant performance penalty (14x) to using this branch for the smart-error functionality._
10
-
11
8
This library parses SQLite queries, using JavaScript, and generates
12
9
_abstract syntax tree_ (AST) representations of the input strings. A
13
10
syntax error is produced if an AST cannot be generated.
@@ -37,18 +34,19 @@ containing SQL to parse and a callback function. The function will invoke
37
34
the callback function with the AST object generated from the source string.
38
35
39
36
```javascript
40
-
// Standard usage
41
-
var sqliteParser =require('sqlite-parser'),
42
-
sampleSQL ="SELECT type, quantity FROM apples WHERE amount > 1";
0 commit comments