pgsql-deparser 13.6.1 → 13.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +483 -0
  2. package/README.md +23 -14
  3. package/package.json +5 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,483 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [13.6.3](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.6.2...pgsql-deparser@13.6.3) (2024-03-30)
7
+
8
+ **Note:** Version bump only for package pgsql-deparser
9
+
10
+
11
+
12
+
13
+
14
+ ## [13.6.2](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.6.1...pgsql-deparser@13.6.2) (2024-03-30)
15
+
16
+ **Note:** Version bump only for package pgsql-deparser
17
+
18
+
19
+
20
+
21
+
22
+ ## [13.6.1](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.6.0...pgsql-deparser@13.6.1) (2024-02-21)
23
+
24
+ **Note:** Version bump only for package pgsql-deparser
25
+
26
+
27
+
28
+
29
+
30
+ # [13.6.0](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.5.0...pgsql-deparser@13.6.0) (2023-12-15)
31
+
32
+ **Note:** Version bump only for package pgsql-deparser
33
+
34
+
35
+
36
+
37
+
38
+ # [13.5.0](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.4.0...pgsql-deparser@13.5.0) (2023-12-15)
39
+
40
+ **Note:** Version bump only for package pgsql-deparser
41
+
42
+
43
+
44
+
45
+
46
+ # [13.4.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.15...pgsql-deparser@13.4.0) (2023-03-15)
47
+
48
+ **Note:** Version bump only for package pgsql-deparser
49
+
50
+
51
+
52
+
53
+
54
+ ## [13.3.15](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.14...pgsql-deparser@13.3.15) (2022-12-22)
55
+
56
+ **Note:** Version bump only for package pgsql-deparser
57
+
58
+
59
+
60
+
61
+
62
+ ## [13.3.14](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.13...pgsql-deparser@13.3.14) (2022-09-14)
63
+
64
+ **Note:** Version bump only for package pgsql-deparser
65
+
66
+
67
+
68
+
69
+
70
+ ## [13.3.13](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.12...pgsql-deparser@13.3.13) (2022-08-31)
71
+
72
+ **Note:** Version bump only for package pgsql-deparser
73
+
74
+
75
+
76
+
77
+
78
+ ## [13.3.12](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.11...pgsql-deparser@13.3.12) (2022-07-29)
79
+
80
+ **Note:** Version bump only for package pgsql-deparser
81
+
82
+
83
+
84
+
85
+
86
+ ## [13.3.11](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.10...pgsql-deparser@13.3.11) (2022-05-20)
87
+
88
+ **Note:** Version bump only for package pgsql-deparser
89
+
90
+
91
+
92
+
93
+
94
+ ## [13.3.10](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.9...pgsql-deparser@13.3.10) (2022-05-19)
95
+
96
+ **Note:** Version bump only for package pgsql-deparser
97
+
98
+
99
+
100
+
101
+
102
+ ## [13.3.9](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.8...pgsql-deparser@13.3.9) (2022-04-19)
103
+
104
+ **Note:** Version bump only for package pgsql-deparser
105
+
106
+
107
+
108
+
109
+
110
+ ## [13.3.8](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.7...pgsql-deparser@13.3.8) (2022-04-19)
111
+
112
+ **Note:** Version bump only for package pgsql-deparser
113
+
114
+
115
+
116
+
117
+
118
+ ## [13.3.7](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.6...pgsql-deparser@13.3.7) (2022-04-19)
119
+
120
+ **Note:** Version bump only for package pgsql-deparser
121
+
122
+
123
+
124
+
125
+
126
+ ## [13.3.6](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.5...pgsql-deparser@13.3.6) (2022-04-19)
127
+
128
+ **Note:** Version bump only for package pgsql-deparser
129
+
130
+
131
+
132
+
133
+
134
+ ## [13.3.5](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.4...pgsql-deparser@13.3.5) (2022-04-19)
135
+
136
+ **Note:** Version bump only for package pgsql-deparser
137
+
138
+
139
+
140
+
141
+
142
+ ## [13.3.4](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.3...pgsql-deparser@13.3.4) (2022-04-19)
143
+
144
+ **Note:** Version bump only for package pgsql-deparser
145
+
146
+
147
+
148
+
149
+
150
+ ## [13.3.3](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.2...pgsql-deparser@13.3.3) (2022-04-19)
151
+
152
+ **Note:** Version bump only for package pgsql-deparser
153
+
154
+
155
+
156
+
157
+
158
+ ## [13.3.2](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.1...pgsql-deparser@13.3.2) (2022-04-19)
159
+
160
+ **Note:** Version bump only for package pgsql-deparser
161
+
162
+
163
+
164
+
165
+
166
+ ## [13.3.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.0...pgsql-deparser@13.3.1) (2022-04-13)
167
+
168
+ **Note:** Version bump only for package pgsql-deparser
169
+
170
+
171
+
172
+
173
+
174
+ # [13.3.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.2.0...pgsql-deparser@13.3.0) (2022-03-18)
175
+
176
+ **Note:** Version bump only for package pgsql-deparser
177
+
178
+
179
+
180
+
181
+
182
+ # [13.2.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.13...pgsql-deparser@13.2.0) (2022-02-24)
183
+
184
+ **Note:** Version bump only for package pgsql-deparser
185
+
186
+
187
+
188
+
189
+
190
+ ## [13.1.13](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.12...pgsql-deparser@13.1.13) (2022-01-07)
191
+
192
+ **Note:** Version bump only for package pgsql-deparser
193
+
194
+
195
+
196
+
197
+
198
+ ## [13.1.12](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.11...pgsql-deparser@13.1.12) (2022-01-05)
199
+
200
+ **Note:** Version bump only for package pgsql-deparser
201
+
202
+
203
+
204
+
205
+
206
+ ## [13.1.11](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.10...pgsql-deparser@13.1.11) (2021-10-19)
207
+
208
+ **Note:** Version bump only for package pgsql-deparser
209
+
210
+
211
+
212
+
213
+
214
+ ## [13.1.10](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.9...pgsql-deparser@13.1.10) (2021-10-19)
215
+
216
+ **Note:** Version bump only for package pgsql-deparser
217
+
218
+
219
+
220
+
221
+
222
+ ## [13.1.9](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.8...pgsql-deparser@13.1.9) (2021-10-13)
223
+
224
+ **Note:** Version bump only for package pgsql-deparser
225
+
226
+
227
+
228
+
229
+
230
+ ## [13.1.8](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.7...pgsql-deparser@13.1.8) (2021-09-09)
231
+
232
+ **Note:** Version bump only for package pgsql-deparser
233
+
234
+
235
+
236
+
237
+
238
+ ## [13.1.7](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.6...pgsql-deparser@13.1.7) (2021-09-09)
239
+
240
+ **Note:** Version bump only for package pgsql-deparser
241
+
242
+
243
+
244
+
245
+
246
+ ## [13.1.6](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.5...pgsql-deparser@13.1.6) (2021-06-25)
247
+
248
+ **Note:** Version bump only for package pgsql-deparser
249
+
250
+
251
+
252
+
253
+
254
+ ## [13.1.5](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.4...pgsql-deparser@13.1.5) (2021-06-02)
255
+
256
+ **Note:** Version bump only for package pgsql-deparser
257
+
258
+
259
+
260
+
261
+
262
+ ## [13.1.4](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.3...pgsql-deparser@13.1.4) (2021-04-26)
263
+
264
+ **Note:** Version bump only for package pgsql-deparser
265
+
266
+
267
+
268
+
269
+
270
+ ## [13.1.3](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.2...pgsql-deparser@13.1.3) (2021-04-07)
271
+
272
+ **Note:** Version bump only for package pgsql-deparser
273
+
274
+
275
+
276
+
277
+
278
+ ## [13.1.2](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.1...pgsql-deparser@13.1.2) (2021-03-27)
279
+
280
+ **Note:** Version bump only for package pgsql-deparser
281
+
282
+
283
+
284
+
285
+
286
+ ## [13.1.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.1.0...pgsql-deparser@13.1.1) (2021-03-26)
287
+
288
+ **Note:** Version bump only for package pgsql-deparser
289
+
290
+
291
+
292
+
293
+
294
+ # [13.1.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.0.5...pgsql-deparser@13.1.0) (2021-03-20)
295
+
296
+ **Note:** Version bump only for package pgsql-deparser
297
+
298
+
299
+
300
+
301
+
302
+ ## [13.0.5](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.0.4...pgsql-deparser@13.0.5) (2021-03-20)
303
+
304
+ **Note:** Version bump only for package pgsql-deparser
305
+
306
+
307
+
308
+
309
+
310
+ ## [13.0.4](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.0.3...pgsql-deparser@13.0.4) (2021-03-19)
311
+
312
+ **Note:** Version bump only for package pgsql-deparser
313
+
314
+
315
+
316
+
317
+
318
+ ## [13.0.3](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.0.2...pgsql-deparser@13.0.3) (2021-03-19)
319
+
320
+
321
+ ### Bug Fixes
322
+
323
+ * deparser ([61e6ac6](https://github.com/pyramation/pgsql-parser/commit/61e6ac647517d066e6363d608fd02535834e67a1))
324
+
325
+
326
+
327
+
328
+
329
+ ## [13.0.2](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.0.1...pgsql-deparser@13.0.2) (2021-03-19)
330
+
331
+ **Note:** Version bump only for package pgsql-deparser
332
+
333
+
334
+
335
+
336
+
337
+ ## [13.0.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.3.1...pgsql-deparser@13.0.1) (2021-03-19)
338
+
339
+ **Note:** Version bump only for package pgsql-deparser
340
+
341
+
342
+
343
+
344
+
345
+ ## [1.3.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.3.0...pgsql-deparser@1.3.1) (2021-03-19)
346
+
347
+ **Note:** Version bump only for package pgsql-deparser
348
+
349
+
350
+
351
+
352
+
353
+ # [1.3.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.2.5...pgsql-deparser@1.3.0) (2021-03-18)
354
+
355
+ **Note:** Version bump only for package pgsql-deparser
356
+
357
+
358
+
359
+
360
+
361
+ ## [1.2.5](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.2.4...pgsql-deparser@1.2.5) (2021-03-13)
362
+
363
+ **Note:** Version bump only for package pgsql-deparser
364
+
365
+
366
+
367
+
368
+
369
+ ## [1.2.4](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.2.3...pgsql-deparser@1.2.4) (2021-03-13)
370
+
371
+ **Note:** Version bump only for package pgsql-deparser
372
+
373
+
374
+
375
+
376
+
377
+ ## [1.2.3](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.2.2...pgsql-deparser@1.2.3) (2020-11-08)
378
+
379
+ **Note:** Version bump only for package pgsql-deparser
380
+
381
+
382
+
383
+
384
+
385
+ ## [1.2.2](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.2.1...pgsql-deparser@1.2.2) (2020-11-04)
386
+
387
+ **Note:** Version bump only for package pgsql-deparser
388
+
389
+
390
+
391
+
392
+
393
+ ## [1.2.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.2.0...pgsql-deparser@1.2.1) (2020-11-04)
394
+
395
+ **Note:** Version bump only for package pgsql-deparser
396
+
397
+
398
+
399
+
400
+
401
+ # [1.2.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.1.1...pgsql-deparser@1.2.0) (2020-11-03)
402
+
403
+ **Note:** Version bump only for package pgsql-deparser
404
+
405
+
406
+
407
+
408
+
409
+ ## [1.1.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.1.0...pgsql-deparser@1.1.1) (2020-10-27)
410
+
411
+ **Note:** Version bump only for package pgsql-deparser
412
+
413
+
414
+
415
+
416
+
417
+ # [1.1.0](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.7...pgsql-deparser@1.1.0) (2020-10-27)
418
+
419
+ **Note:** Version bump only for package pgsql-deparser
420
+
421
+
422
+
423
+
424
+
425
+ ## [1.0.7](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.6...pgsql-deparser@1.0.7) (2020-10-27)
426
+
427
+ **Note:** Version bump only for package pgsql-deparser
428
+
429
+
430
+
431
+
432
+
433
+ ## [1.0.6](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.5...pgsql-deparser@1.0.6) (2020-10-26)
434
+
435
+ **Note:** Version bump only for package pgsql-deparser
436
+
437
+
438
+
439
+
440
+
441
+ ## [1.0.5](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.4...pgsql-deparser@1.0.5) (2020-10-25)
442
+
443
+ **Note:** Version bump only for package pgsql-deparser
444
+
445
+
446
+
447
+
448
+
449
+ ## [1.0.4](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.3...pgsql-deparser@1.0.4) (2020-10-23)
450
+
451
+ **Note:** Version bump only for package pgsql-deparser
452
+
453
+
454
+
455
+
456
+
457
+ ## [1.0.3](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.2...pgsql-deparser@1.0.3) (2020-10-23)
458
+
459
+ **Note:** Version bump only for package pgsql-deparser
460
+
461
+
462
+
463
+
464
+
465
+ ## [1.0.2](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.1...pgsql-deparser@1.0.2) (2020-10-23)
466
+
467
+ **Note:** Version bump only for package pgsql-deparser
468
+
469
+
470
+
471
+
472
+
473
+ ## [1.0.1](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@1.0.0...pgsql-deparser@1.0.1) (2020-10-22)
474
+
475
+ **Note:** Version bump only for package pgsql-deparser
476
+
477
+
478
+
479
+
480
+
481
+ # 1.0.0 (2020-10-19)
482
+
483
+ **Note:** Version bump only for package pgsql-deparser
package/README.md CHANGED
@@ -1,6 +1,20 @@
1
- # pgsql-parser [![tests](https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml)
1
+ # pgsql-deparser
2
2
 
3
- The real PostgreSQL parser for nodejs. The primary objective of this module is to provide symmetric parsing and deparsing of SQL statements. With this module you can modify parts of a SQL query statement and serialize the query tree back into a formatted SQL statement. It uses the *real* [PostgreSQL parser](https://github.com/pganalyze/libpg_query).
3
+ <p align="center" width="100%">
4
+ <img height="120" src="https://github.com/launchql/pgsql-parser/assets/545047/6440fa7d-918b-4a3b-8d1b-755d85de8bea" />
5
+ </p>
6
+
7
+ <p align="center" width="100%">
8
+ <a href="https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml">
9
+ <img height="20" src="https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml/badge.svg" />
10
+ </a>
11
+ <a href="https://www.npmjs.com/package/pgsql-deparser"><img height="20" src="https://img.shields.io/npm/dw/pgsql-deparser"/></a>
12
+ <a href="https://www.npmjs.com/package/pgsql-deparser"><img height="20" src="https://img.shields.io/npm/dt/pgsql-deparser"></a>
13
+ <a href="https://github.com/launchql/pgsql-parser/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
14
+ <a href="https://www.npmjs.com/package/pgsql-deparser"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/pgsql-parser?filename=packages%2Fenums%2Fpackage.json"/></a>
15
+ </p>
16
+
17
+ The real PostgreSQL (de)parser for nodejs. The primary objective of this module is to provide symmetric parsing and deparsing of SQL statements. With this module you can modify parts of a SQL query statement and serialize the query tree back into a formatted SQL statement. It uses the *real* [PostgreSQL parser](https://github.com/pganalyze/libpg_query).
4
18
 
5
19
  The main functionality provided by this module is deparsing, which PostgreSQL does not have internally.
6
20
 
@@ -10,12 +24,13 @@ The main functionality provided by this module is deparsing, which PostgreSQL do
10
24
  npm install pgsql-parser
11
25
  ```
12
26
 
13
- ## Parser Example
27
+ ## Deparser Example
14
28
 
15
- Rewrite part of a SQL query:
29
+ The deparser can be used separately, which removes many deps required for the parser:
16
30
 
17
31
  ```js
18
- const { parse, deparse } = require('pgsql-parser');
32
+ const { parse } = require('pgsql-parser');
33
+ const { deparse } = require('pgsql-deparser');
19
34
 
20
35
  const stmts = parse('SELECT * FROM test_table');
21
36
 
@@ -26,13 +41,12 @@ console.log(deparse(stmts));
26
41
  // SELECT * FROM "another_table"
27
42
  ```
28
43
 
29
- ## Deparser Example
44
+ ## Parser Example
30
45
 
31
- The deparser can be used separately, which removes many deps required for the parser:
46
+ Rewrite part of a SQL query:
32
47
 
33
48
  ```js
34
- const { parse } = require('pgsql-parser');
35
- const { deparse } = require('pgsql-deparser');
49
+ const { parse, deparse } = require('pgsql-parser');
36
50
 
37
51
  const stmts = parse('SELECT * FROM test_table');
38
52
 
@@ -104,11 +118,6 @@ Our latest is built with `13-latest` branch from libpg_query
104
118
  | 11 | (n/a) | Not supported |
105
119
  | 10 | 10-latest | Not supported | `@1.3.1` ([tree](https://github.com/launchql/pgsql-parser/tree/39b7b1adc8914253226e286a48105785219a81ca)) |
106
120
 
107
-
108
- ## Resources
109
-
110
-
111
-
112
121
  ## Related
113
122
 
114
123
  * [libpg-query-node](https://github.com/pyramation/libpg-query-node)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-deparser",
3
- "version": "13.6.1",
3
+ "version": "13.6.3",
4
4
  "description": "PostgreSQL AST Deparser",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/launchql/pgsql-parser",
@@ -65,13 +65,14 @@
65
65
  "eslint-plugin-prettier": "^3.1.2",
66
66
  "glob": "7.1.6",
67
67
  "jest": "^25.1.0",
68
- "pgsql-parser": "^13.7.1",
68
+ "pgsql-parser": "^13.7.3",
69
69
  "prettier": "^2.1.2",
70
70
  "regenerator-runtime": "^0.13.2"
71
71
  },
72
72
  "dependencies": {
73
73
  "@babel/runtime": "^7.11.2",
74
74
  "dotty": "^0.1.0",
75
- "pgsql-enums": "^13.2.0"
76
- }
75
+ "pgsql-enums": "^13.2.2"
76
+ },
77
+ "gitHead": "36f81b1aa480303b6e778aa90353962439cbfb18"
77
78
  }