node-pg-query-native icon indicating copy to clipboard operation
node-pg-query-native copied to clipboard

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

Open ethanresnick opened this issue 5 years ago • 3 comments

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.

ethanresnick avatar Jul 27 '19 00:07 ethanresnick

@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 avatar Jul 03 '20 07:07 pyramation

@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

pyramation avatar Jul 03 '20 09:07 pyramation