pgsql-deparser 18.3.1 → 18.3.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.js +6 -6
- package/esm/deparser.js +6 -6
- package/package.json +5 -5
package/deparser.js
CHANGED
|
@@ -3539,9 +3539,8 @@ class Deparser {
|
|
|
3539
3539
|
output.push('INCLUDE');
|
|
3540
3540
|
output.push(context.parens(includeStrs.join(', ')));
|
|
3541
3541
|
}
|
|
3542
|
-
if (node.
|
|
3543
|
-
output.push('
|
|
3544
|
-
output.push(this.visit(node.whereClause, context));
|
|
3542
|
+
if (node.nulls_not_distinct) {
|
|
3543
|
+
output.push('NULLS NOT DISTINCT');
|
|
3545
3544
|
}
|
|
3546
3545
|
if (node.options && node.options.length > 0) {
|
|
3547
3546
|
const indexContext = context.spawn('IndexStmt');
|
|
@@ -3549,13 +3548,14 @@ class Deparser {
|
|
|
3549
3548
|
output.push('WITH');
|
|
3550
3549
|
output.push(context.parens(optionStrs.join(', ')));
|
|
3551
3550
|
}
|
|
3552
|
-
if (node.nulls_not_distinct) {
|
|
3553
|
-
output.push('NULLS NOT DISTINCT');
|
|
3554
|
-
}
|
|
3555
3551
|
if (node.tableSpace) {
|
|
3556
3552
|
output.push('TABLESPACE');
|
|
3557
3553
|
output.push(quotes_1.QuoteUtils.quoteIdentifier(node.tableSpace));
|
|
3558
3554
|
}
|
|
3555
|
+
if (node.whereClause) {
|
|
3556
|
+
output.push('WHERE');
|
|
3557
|
+
output.push(this.visit(node.whereClause, context));
|
|
3558
|
+
}
|
|
3559
3559
|
return output.join(' ');
|
|
3560
3560
|
}
|
|
3561
3561
|
IndexElem(node, context) {
|
package/esm/deparser.js
CHANGED
|
@@ -3536,9 +3536,8 @@ export class Deparser {
|
|
|
3536
3536
|
output.push('INCLUDE');
|
|
3537
3537
|
output.push(context.parens(includeStrs.join(', ')));
|
|
3538
3538
|
}
|
|
3539
|
-
if (node.
|
|
3540
|
-
output.push('
|
|
3541
|
-
output.push(this.visit(node.whereClause, context));
|
|
3539
|
+
if (node.nulls_not_distinct) {
|
|
3540
|
+
output.push('NULLS NOT DISTINCT');
|
|
3542
3541
|
}
|
|
3543
3542
|
if (node.options && node.options.length > 0) {
|
|
3544
3543
|
const indexContext = context.spawn('IndexStmt');
|
|
@@ -3546,13 +3545,14 @@ export class Deparser {
|
|
|
3546
3545
|
output.push('WITH');
|
|
3547
3546
|
output.push(context.parens(optionStrs.join(', ')));
|
|
3548
3547
|
}
|
|
3549
|
-
if (node.nulls_not_distinct) {
|
|
3550
|
-
output.push('NULLS NOT DISTINCT');
|
|
3551
|
-
}
|
|
3552
3548
|
if (node.tableSpace) {
|
|
3553
3549
|
output.push('TABLESPACE');
|
|
3554
3550
|
output.push(QuoteUtils.quoteIdentifier(node.tableSpace));
|
|
3555
3551
|
}
|
|
3552
|
+
if (node.whereClause) {
|
|
3553
|
+
output.push('WHERE');
|
|
3554
|
+
output.push(this.visit(node.whereClause, context));
|
|
3555
|
+
}
|
|
3556
3556
|
return output.join(' ');
|
|
3557
3557
|
}
|
|
3558
3558
|
IndexElem(node, context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgsql-deparser",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.3",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL AST Deparser",
|
|
6
6
|
"main": "index.js",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"database"
|
|
54
54
|
],
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"libpg-query": "18.1.
|
|
57
|
-
"makage": "^0.1
|
|
56
|
+
"libpg-query": "18.1.4",
|
|
57
|
+
"makage": "^0.5.1"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@pgsql/quotes": "18.2.
|
|
60
|
+
"@pgsql/quotes": "18.2.1",
|
|
61
61
|
"@pgsql/types": "^18.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "b6105874628cc7b8517c1ebbd99e9ad6fe786976"
|
|
64
64
|
}
|