Closed benasher44 closed 1 year ago
@pyramation one thing to consider is downstream libpg_query has deparse now, starting with postgres 13. do you think it's possible to use it? If so, that could reduce library maintenance here to automatic maintenance of symmetric versions + maintaining the build
Thanks @benasher44 ! this is great
@pyramation one thing to consider is downstream libpg_query has deparse now, starting with postgres 13. do you think it's possible to use it? If so, that could reduce library maintenance here to automatic maintenance of symmetric versions + maintaining the build
So, I'm open to it! But I'd prefer making another package, perhaps, native-deparse, because currently the deparse package doesn't rely on any C code or the postgres build. The current deparse is pure javascript which makes it super portable.
Btw, I'm merging into a develop branch so I can run tests, for some reason the testing CI didn't run with this PR.
Awesome thanks!
Thanks @benasher44 ! this is great
@pyramation one thing to consider is downstream libpg_query has deparse now, starting with postgres 13. do you think it's possible to use it? If so, that could reduce library maintenance here to automatic maintenance of symmetric versions + maintaining the build
So, I'm open to it! But I'd prefer making another package, perhaps, native-deparse, because currently the deparse package doesn't rely on any C code or the postgres build. The current deparse is pure javascript which makes it super portable.
That's fair. We may look into it, and if we open a PR, we'll make it a separate package then. Are people making SQL ASTs without going through the parser (which relies on C code)?
This cuts total runtime of our internal test suite by 38%.
Summary of changes:
With the above, we can remove preparse.js
Closes #97