public inbox for [email protected]  
help / color / mirror / Atom feed
From: Buck Huppmann <[email protected]>
To: [email protected]
Subject: Wiki editor request
Date: Wed, 13 Sep 2023 01:08:46 -0400
Message-ID: <20230913050846.GA18473@runt> (raw)

Hello

I would like permission to edit the postgresql parsers page to add
the python pglast library to the list, as I've found it to be a
perfect scratch for my itch, this itch being one of a python origin,
and think it might do other people looking to that page for similar
relief some good.

The community account username I just signed up for is: sapito

If you just wanna do the honors yourself, the page I want to edit is

https://wiki.postgresql.org/wiki/Query_Parsing

and the text I want to add is below, marked down.

Thanks either way

--buck

#### pglast

As an alternative to *sqlparse*, for Python use, there is
[*pglast*](https://github.com/lelit/pglast), which, like
[*pg_query*](#pg_query), mentioned above, also builds
on the underlying machinery of
[*libpq_query*](https://github.com/pganalyze/libpg_query) to
make PostgreSQL's internal query parsing code and the elements
of the parse tree available not only for validating and
breaking down queries grammatically but also for building
them up from parts, patching them, etc., and comes with
pretty-printing and some PostgreSQL-specific functionality
(rewriting comma-separated argument-list calls of builtin
functions with the available stadardsy equivalent phrases,
e.g.) for rendering to a range of outputs.

#### Other *libpq_query* bindings

The [*libpq_query* project
README](https://github.com/pganalyze/libpg_query#readme)
lists bindings in
[a few
other languages](https://github.com/pganalyze/libpg_query#resources)
as well.





view thread (323+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Wiki editor request
  In-Reply-To: <20230913050846.GA18473@runt>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox