pglast¶
PostgreSQL Languages AST and statements prettifier¶
- author:
Lele Gaifax
- contact:
- license:
- version:
This is a Python 3 module that exposes the parse tree of a PostgreSQL statement (extracted by the almost standard PG parser repackaged as a standalone static library by libpg_query) as set of interconnected nodes, usually called an abstract syntax tree.
Contents:
- Introduction
- Installation
- Development
- Examples of usage
- API documentation
CommentError__author____version__parse_plpgsql()prettify()split()pglast.parser— The interface with libpg_querypglast.ast— Python classes representing PG parser nodespglast.enums— Enumerated constantspglast.keywords— Various kinds of PostgreSQL keywordspglast.stream— The serialization machinerypglast.precedence— Operators precedence logicpglast.printers— Specialized printer functionspglast.printers.sfuncs— Special function printerspglast.visitors— Other ways to inspect and manipulate the AST