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

Commit 636f0a5

Browse files
committed
new spec for WITH clause with recursive table expressions. fixed rules for WITH clause prepended to CRUD-type statements to make sure the with property is added to the correct nodes. changed the AST for WITH clause to no longer have a node of type with. refs #2
1 parent 759a559 commit 636f0a5

13 files changed

Lines changed: 3413 additions & 3260 deletions

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased][unreleased]
5+
### Added
6+
- new spec for `WITH` clause with recursive table expressions
7+
8+
### Changed
9+
- fixed rules for `WITH` clause prepended to CRUD-type statements to make sure the `with` property is added to the correct nodes
10+
- changed the AST for `WITH` clause to no longer have a node of `type` `"with"`
11+
12+
``` json
13+
"with": [
14+
{
15+
"type": "expression",
16+
"format": "table",
17+
"name": "bees",
18+
"expression": {
19+
"type": "statement",
20+
"variant": "select",
21+
"from": [],
22+
"where": null,
23+
"group": null,
24+
"result": [],
25+
"distinct": false,
26+
"all": false,
27+
"order": null,
28+
"limit": null
29+
},
30+
"columns": null,
31+
"recursive": false
32+
}
33+
]
34+
```
535

636
## [v0.9.8] - 2015-07-06
737
### Added

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ FROM
125125
"distinct": false,
126126
"all": false,
127127
"order": null,
128-
"limit": null
128+
"limit": null,
129+
"with": []
129130
}
130131
]
131132
}

demo/js/sqlite-parser-demo.js

Lines changed: 16 additions & 16 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: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)