pgsql-deparser 13.6.0 → 13.6.2

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [13.6.2](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.6.1...pgsql-deparser@13.6.2) (2024-03-30)
7
+
8
+ **Note:** Version bump only for package pgsql-deparser
9
+
10
+
11
+
12
+
13
+
14
+ ## [13.6.1](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.6.0...pgsql-deparser@13.6.1) (2024-02-21)
15
+
16
+ **Note:** Version bump only for package pgsql-deparser
17
+
18
+
19
+
20
+
21
+
6
22
  # [13.6.0](https://github.com/launchql/pgsql-parser/compare/pgsql-deparser@13.5.0...pgsql-deparser@13.6.0) (2023-12-15)
7
23
 
8
24
  **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)