pgsql-deparser 13.3.8 → 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,14 @@
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
+
6
14
  ## [13.3.8](https://github.com/pyramation/pgsql-parser/compare/pgsql-deparser@13.3.7...pgsql-deparser@13.3.8) (2022-04-19)
7
15
 
8
16
  **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));
@@ -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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-deparser",
3
- "version": "13.3.8",
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.8",
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": "b5341b62b3fa7d239ba8a285382d9ffda0deacfd"
78
+ "gitHead": "437f751fb214fdd5d970ac4327c4a5e2c175a0f9"
79
79
  }