Try and match pg_dump-style capitalisation and word order, but with prettier line-wrapping/indentation.
VOLATILEin the output if and only if they were marked as such in the input (otherwise omit))
Don't! We're not ready yet!
git clone firstname.lastname@example.org:benjie/prettier-plugin-pg.git cd prettier-plugin-pg yarn npm run test
We then took the deparser from pg-query-parser as the foundation for the printer, and converted it from using strings internally to using prettier's formatting commands. [This is where we're working currently.]
We've not got this far yet, but next we'll be adding a library of tests (if you have any particularly tricky SQL, please submit it!) to ensure that nothing is corrupted.
Finally we'll be optimising the formatting of the output queries - putting the
lines in the correct places.
Very much a work in progress - do NOT use this for basically ANYTHING yet, we've got a long way to go.
Help would be very much appreciated - just jot down
in an issue what you'd like to do and if you get the nod (which tends to be
fairly prompt!) then please send a PR. Issues will be opened up to other
contributors after a short period of inactivity, so you're encouraged to open a
PR before it's ready to merge, just mark it as
[WIP] in the PR title.
While I've got your attention: