You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Primarily used for the node.js parser and deparser [pgsql-parser](https://github.com/pyramation/pgsql-parser)
6
17
7
-
## Building a binary distribution
8
18
9
-
- Install requirements (`npm i`)
10
-
-`npx node-pre-gyp rebuild package`
11
-
- With appropriate AWS credentials configured, `npx node-pre-gyp publish`
19
+
## Table of Contents
12
20
13
-
Or you can run the scripts
21
+
1.[Installation](#installation)
22
+
2.[Example](#example)
23
+
5.[Documentation](#documentation)
24
+
3.[Versions](#versions)
25
+
4.[Building a binary distribution](#building-a-binary-distribution)
26
+
6.[Related Projects](#related-projects)
27
+
7.[Credit](#credit)
14
28
15
-
```
16
-
npm run binary:build
17
-
npm run binary:publish
18
-
```
19
29
20
30
## Installation
21
31
22
32
```sh
23
33
npm install libpg-query
24
34
```
25
35
36
+
## Example
37
+
38
+
```js
39
+
constparser=require('libpg-query');
40
+
parser.parseQuery('select 1').then(console.log);
41
+
```
42
+
26
43
### Documentation
27
44
28
45
### `query.parseQuery(sql)`/`parseQuerySync`
@@ -35,27 +52,36 @@ The return value is an array, as multiple queries may be provided in a single st
35
52
36
53
Parses the contents of a PL/PGSql function, from a `CREATE FUNCTION` declaration, and returns a Promise for the parse tree (or returns the parse tree directly in the sync version). May reject with/throw a parse error.
37
54
38
-
## Example
55
+
## Versions
39
56
40
-
```js
41
-
constparser=require('libpg-query');
42
-
parser.parseQuery('select 1').then(console.log);
43
-
```
57
+
Our latest is built with `16-latest` branch from libpg_query
44
58
45
-
## Versions
46
59
47
-
Our latest is built with `15-latest` branch from libpg_query
0 commit comments