pgsql-deparser 13.3.6 → 13.3.9

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,30 @@
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.3.9](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.8...pgsql-deparser@13.3.9) (2022-04-19)
7
+
8
+ **Note:** Version bump only for package pgsql-deparser
9
+
10
+
11
+
12
+
13
+
14
+ ## [13.3.8](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.7...pgsql-deparser@13.3.8) (2022-04-19)
15
+
16
+ **Note:** Version bump only for package pgsql-deparser
17
+
18
+
19
+
20
+
21
+
22
+ ## [13.3.7](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.6...pgsql-deparser@13.3.7) (2022-04-19)
23
+
24
+ **Note:** Version bump only for package pgsql-deparser
25
+
26
+
27
+
28
+
29
+
6
30
  ## [13.3.6](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.5...pgsql-deparser@13.3.6) (2022-04-19)
7
31
 
8
32
  **Note:** Version bump only for package pgsql-deparser
package/main/deparser.js CHANGED
@@ -2789,6 +2789,10 @@ var Deparser = /*#__PURE__*/function () {
2789
2789
  output.push('CREATE');
2790
2790
  } else {
2791
2791
  output.push('CREATE TABLE');
2792
+
2793
+ if (node.if_not_exists) {
2794
+ output.push('IF NOT EXISTS');
2795
+ }
2792
2796
  }
2793
2797
 
2794
2798
  output.push(this.RangeVar(node.relation, context));
@@ -3722,6 +3726,8 @@ var Deparser = /*#__PURE__*/function () {
3722
3726
  return _this20.deparse(arg, context);
3723
3727
  }).join(','));
3724
3728
  output.push(')');
3729
+ } else if (!node.args_unspecified) {
3730
+ output.push('()');
3725
3731
  }
3726
3732
 
3727
3733
  return output.join(' ');
@@ -2538,6 +2538,10 @@ export default class Deparser {
2538
2538
  output.push('CREATE');
2539
2539
  } else {
2540
2540
  output.push('CREATE TABLE');
2541
+
2542
+ if (node.if_not_exists) {
2543
+ output.push('IF NOT EXISTS');
2544
+ }
2541
2545
  }
2542
2546
 
2543
2547
  output.push(this.RangeVar(node.relation, context));
@@ -3421,6 +3425,8 @@ export default class Deparser {
3421
3425
  return this.deparse(arg, context);
3422
3426
  }).join(','));
3423
3427
  output.push(')');
3428
+ } else if (!node.args_unspecified) {
3429
+ output.push('()');
3424
3430
  }
3425
3431
 
3426
3432
  return output.join(' ');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-deparser",
3
- "version": "13.3.6",
3
+ "version": "13.3.9",
4
4
  "description": "PostgreSQL AST Deparser",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/pyramation/pgsql-parser",
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-prettier": "^3.1.2",
66
66
  "glob": "7.1.6",
67
67
  "jest": "^25.1.0",
68
- "pgsql-parser": "^13.3.6",
68
+ "pgsql-parser": "^13.3.9",
69
69
  "prettier": "^2.1.2",
70
70
  "regenerator-runtime": "^0.13.2"
71
71
  },
@@ -75,5 +75,5 @@
75
75
  "lodash": "^4.17.20",
76
76
  "pgsql-enums": "^13.1.2"
77
77
  },
78
- "gitHead": "9e241dc39d3469afe7908cd7e2e9f847efa43f6f"
78
+ "gitHead": "437f751fb214fdd5d970ac4327c4a5e2c175a0f9"
79
79
  }