pgsql-parser 17.6.1 → 17.7.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -91,7 +91,7 @@ Here's how you can use the deparser in your TypeScript code, using [`@pgsql/util
91
91
  ```ts
92
92
  import * as t from '@pgsql/utils';
93
93
  import { RangeVar, SelectStmt } from '@pgsql/types';
94
- import { deparseSync as deparse } from 'pgsql-deparser';
94
+ import { deparse } from 'pgsql-deparser';
95
95
 
96
96
  // This could have been obtained from any JSON or AST, not necessarily @pgsql/utils
97
97
  const stmt: { SelectStmt: SelectStmt } = t.nodes.selectStmt({
@@ -117,7 +117,7 @@ const stmt: { SelectStmt: SelectStmt } = t.nodes.selectStmt({
117
117
  (stmt.SelectStmt.fromClause[0] as {RangeVar: RangeVar}).RangeVar.relname = 'another_table';
118
118
 
119
119
  // Deparse the modified AST back to a SQL string
120
- console.log(deparse(stmt));
120
+ console.log(await deparse(stmt));
121
121
 
122
122
  // Output: SELECT * FROM another_table
123
123
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-parser",
3
- "version": "17.6.1",
3
+ "version": "17.7.0",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "The real PostgreSQL query parser",
6
6
  "main": "index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@pgsql/types": "^17.6.1",
43
43
  "libpg-query": "17.5.2",
44
- "pgsql-deparser": "^17.7.1"
44
+ "pgsql-deparser": "^17.8.0"
45
45
  },
46
- "gitHead": "f4b9c0f9f3a8162fe463879a4b0af9238c77e087"
46
+ "gitHead": "785243803d4759f52f8fbe24cc8c0a0b99ba9b11"
47
47
  }