pgsql-deparser 17.8.1 → 17.8.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/deparser.d.ts +4 -3
- package/deparser.js +742 -405
- package/esm/deparser.js +742 -405
- package/esm/visitors/base.js +87 -0
- package/package.json +3 -3
- package/visitors/base.d.ts +49 -2
- package/visitors/base.js +89 -1
package/deparser.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ export interface DeparserOptions {
|
|
|
34
34
|
* compatibility and wraps them internally for consistent processing.
|
|
35
35
|
*/
|
|
36
36
|
export declare class Deparser implements DeparserVisitor {
|
|
37
|
-
private formatter;
|
|
38
37
|
private tree;
|
|
39
38
|
private options;
|
|
40
39
|
constructor(tree: Node | Node[] | t.ParseResult, opts?: DeparserOptions);
|
|
@@ -65,10 +64,11 @@ export declare class Deparser implements DeparserVisitor {
|
|
|
65
64
|
RawStmt(node: t.RawStmt, context: DeparserContext): string;
|
|
66
65
|
SelectStmt(node: t.SelectStmt, context: DeparserContext): string;
|
|
67
66
|
A_Expr(node: t.A_Expr, context: DeparserContext): string;
|
|
68
|
-
deparseOperatorName(name: t.Node[]): string;
|
|
67
|
+
deparseOperatorName(name: t.Node[], context: DeparserContext): string;
|
|
69
68
|
private getOperatorPrecedence;
|
|
70
69
|
private needsParentheses;
|
|
71
70
|
private isComplexExpression;
|
|
71
|
+
private isComplexSelectTarget;
|
|
72
72
|
visitBetweenRange(rexpr: any, context: DeparserContext): string;
|
|
73
73
|
InsertStmt(node: t.InsertStmt, context: DeparserContext): string;
|
|
74
74
|
UpdateStmt(node: t.UpdateStmt, context: DeparserContext): string;
|
|
@@ -88,6 +88,7 @@ export declare class Deparser implements DeparserVisitor {
|
|
|
88
88
|
formatTypeMods(typmods: t.Node[], context: DeparserContext): string | null;
|
|
89
89
|
formatSingleTypeMod(typemod: number, typeName: string): string | null;
|
|
90
90
|
getPgCatalogTypeName(typeName: string, size: string | null): string;
|
|
91
|
+
isPgCatalogType(typeName: string): boolean;
|
|
91
92
|
A_ArrayExpr(node: t.A_ArrayExpr, context: DeparserContext): string;
|
|
92
93
|
A_Indices(node: t.A_Indices, context: DeparserContext): string;
|
|
93
94
|
A_Indirection(node: t.A_Indirection, context: DeparserContext): string;
|
|
@@ -115,7 +116,7 @@ export declare class Deparser implements DeparserVisitor {
|
|
|
115
116
|
SubLink(node: t.SubLink, context: DeparserContext): string;
|
|
116
117
|
CaseWhen(node: t.CaseWhen, context: DeparserContext): string;
|
|
117
118
|
WindowDef(node: t.WindowDef, context: DeparserContext): string;
|
|
118
|
-
formatWindowFrame(node: any): string | null;
|
|
119
|
+
formatWindowFrame(node: any, context: DeparserContext): string | null;
|
|
119
120
|
SortBy(node: t.SortBy, context: DeparserContext): string;
|
|
120
121
|
GroupingSet(node: t.GroupingSet, context: DeparserContext): string;
|
|
121
122
|
CommonTableExpr(node: t.CommonTableExpr, context: DeparserContext): string;
|