zhm / node-pg-query-native

PostgreSQL Query Parser for Node.js
BSD 3-Clause "New" or "Revised" License
29 stars 17 forks source link

FYI: fork with async versions, PLPgSQL parsing, newer parser #13

Open ethanresnick opened 4 years ago

ethanresnick commented 4 years ago

Thanks for your work on this library!

I needed some features that were missing — namely, access to the libpg_query parsing for Pl/PgSQL functions, and the ability to do parsing asynchronously from Node — so I made my own fork and published it to npm as pg-plpgsql-query-native. To handle the async stuff, I also updated the C++ code to use the Node Addons API bindings to N-API.

Just thought I'd let you know in case you want to expose async parsing as part of your pg-query-parser package.

pyramation commented 4 years ago

@ethanresnick this is super cool! I've been maintaining another fork of the parser that uses this library. I'd love to use your library and will start to integrate it :)

pyramation commented 4 years ago

@ethanresnick I just upgraded this, and tested it out, and it's way more portable! Worked on node 10, 12, and 14!

Thanks for putting this together. Hope to stay in touch, cheers!

If you're interested in where I'm using it: https://github.com/pyramation/pgsql-parser