@pgsql/transform 17.9.1 → 17.9.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.
- package/13/enums.d.ts +1 -1
- package/13/types.d.ts +1 -1
- package/14/enums.d.ts +1 -1
- package/14/types.d.ts +1 -1
- package/15/enums.d.ts +1 -1
- package/15/types.d.ts +1 -1
- package/16/enums.d.ts +1 -1
- package/16/types.d.ts +1 -1
- package/17/enums.d.ts +1 -1
- package/17/types.d.ts +1 -1
- package/README.md +8 -6
- package/package.json +10 -10
package/13/enums.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/13/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/14/enums.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/14/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/15/enums.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/15/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/16/enums.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/16/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/17/enums.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/17/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was automatically generated by pg-proto-parser@1.30.
|
|
2
|
+
* This file was automatically generated by pg-proto-parser@1.30.2.
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
|
|
4
4
|
* and run the pg-proto-parser generate command to regenerate this file.
|
|
5
5
|
*/
|
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# @pgsql/transform
|
|
2
2
|
|
|
3
3
|
<p align="center" width="100%">
|
|
4
|
-
<img height="120" src="https://github.com/
|
|
4
|
+
<img height="120" src="https://github.com/constructive-io/pgsql-parser/assets/545047/6440fa7d-918b-4a3b-8d1b-755d85de8bea" />
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center" width="100%">
|
|
8
|
-
<a href="https://github.com/
|
|
9
|
-
<img height="20" src="https://github.com/
|
|
8
|
+
<a href="https://github.com/constructive-io/pgsql-parser/actions/workflows/run-tests.yaml">
|
|
9
|
+
<img height="20" src="https://github.com/constructive-io/pgsql-parser/actions/workflows/run-tests.yaml/badge.svg" />
|
|
10
10
|
</a>
|
|
11
|
-
<a href="https://github.com/
|
|
12
|
-
<a href="https://www.npmjs.com/package/@pgsql/transform"><img height="20" src="https://img.shields.io/github/package-json/v/
|
|
11
|
+
<a href="https://github.com/constructive-io/pgsql-parser/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
|
|
12
|
+
<a href="https://www.npmjs.com/package/@pgsql/transform"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/pgsql-parser?filename=packages%2Ftransform%2Fpackage.json"/></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
`@pgsql/transform` is a TypeScript library for transforming PostgreSQL ASTs between different PostgreSQL versions. It serves as a crucial component for building a single source of truth deparser that can handle SQL from multiple PostgreSQL versions while maintaining backward compatibility.
|
|
@@ -117,6 +117,8 @@ This enables a single source of truth for SQL generation while supporting legacy
|
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
120
|
+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
|
|
121
|
+
|
|
120
122
|
## Related
|
|
121
123
|
|
|
122
124
|
* [pgsql-parser](https://www.npmjs.com/package/pgsql-parser): The real PostgreSQL parser for Node.js, providing symmetric parsing and deparsing of SQL statements with actual PostgreSQL parser integration.
|
|
@@ -127,7 +129,7 @@ This enables a single source of truth for SQL generation while supporting legacy
|
|
|
127
129
|
* [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): A comprehensive utility library for PostgreSQL, offering type-safe AST node creation and enum value conversions, simplifying the construction and manipulation of PostgreSQL ASTs.
|
|
128
130
|
* [@pgsql/traverse](https://www.npmjs.com/package/@pgsql/traverse): PostgreSQL AST traversal utilities for pgsql-parser, providing a visitor pattern for traversing PostgreSQL Abstract Syntax Tree nodes, similar to Babel's traverse functionality but specifically designed for PostgreSQL AST structures.
|
|
129
131
|
* [pg-proto-parser](https://www.npmjs.com/package/pg-proto-parser): A TypeScript tool that parses PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
|
|
130
|
-
* [libpg-query](https://github.com/
|
|
132
|
+
* [libpg-query](https://github.com/constructive-io/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries.
|
|
131
133
|
|
|
132
134
|
## Disclaimer
|
|
133
135
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgsql/transform",
|
|
3
|
-
"version": "17.9.
|
|
4
|
-
"author": "
|
|
3
|
+
"version": "17.9.3",
|
|
4
|
+
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Transform PostgreSQL AST types for pgsql-parser",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"module": "esm/index.js",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
|
-
"homepage": "https://github.com/
|
|
9
|
+
"homepage": "https://github.com/constructive-io/pgsql-parser",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/constructive-io/pgsql-parser"
|
|
18
18
|
},
|
|
19
19
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/
|
|
20
|
+
"url": "https://github.com/constructive-io/pgsql-parser/issues"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"copy": "makage assets",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"test:ast": "ts-node scripts/test-ast.ts"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@pgsql/parser": "^1.2.
|
|
37
|
-
"makage": "^0.1.
|
|
38
|
-
"pg-proto-parser": "1.30.
|
|
39
|
-
"pgsql-deparser": "17.
|
|
36
|
+
"@pgsql/parser": "^1.2.1",
|
|
37
|
+
"makage": "^0.1.8",
|
|
38
|
+
"pg-proto-parser": "1.30.2",
|
|
39
|
+
"pgsql-deparser": "17.13.0"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7cbb9621ab078db873c1627713963ffa98b8447c"
|
|
43
43
|
}
|