pgsql-deparser 17.12.2 → 17.13.0
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/README.md +1 -1
- package/deparser.d.ts +0 -2
- package/deparser.js +179 -223
- package/esm/deparser.js +179 -223
- package/esm/kwlist.js +531 -0
- package/esm/utils/quote-utils.js +77 -46
- package/kwlist.d.ts +16 -0
- package/kwlist.js +535 -0
- package/package.json +4 -3
- package/utils/quote-utils.d.ts +23 -2
- package/utils/quote-utils.js +77 -46
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ const sql2 = deparse(selectAst, { pretty: true });
|
|
|
131
131
|
// active = true;
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
-
For complete documentation and advanced options, see [DEPARSER_USAGE.md](
|
|
134
|
+
For complete documentation and advanced options, see [DEPARSER_USAGE.md](https://github.com/constructive-io/pgsql-parser/tree/main/packages/deparser/DEPARSER_USAGE.md).
|
|
135
135
|
|
|
136
136
|
## Why Use `pgsql-deparser`?
|
|
137
137
|
|
package/deparser.d.ts
CHANGED
|
@@ -104,8 +104,6 @@ export declare class Deparser implements DeparserVisitor {
|
|
|
104
104
|
CollateClause(node: t.CollateClause, context: DeparserContext): string;
|
|
105
105
|
BooleanTest(node: t.BooleanTest, context: DeparserContext): string;
|
|
106
106
|
NullTest(node: t.NullTest, context: DeparserContext): string;
|
|
107
|
-
private static readonly RESERVED_WORDS;
|
|
108
|
-
private static needsQuotes;
|
|
109
107
|
quoteIfNeeded(value: string): string;
|
|
110
108
|
preserveOperatorDefElemCase(defName: string): string;
|
|
111
109
|
String(node: t.String, context: DeparserContext): string;
|