pglast¶

PostgreSQL Languages AST and statements prettifier¶

author:Lele Gaifax
contact:lele@metapensiero.it
license:GNU General Public License version 3 or later
version:5

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
    • History
  • Examples of usage
    • AST level
    • Command line
  • API documentation
    • pglast.parser — The interface with libpg_query
    • pglast.ast — Python classes representing PG parser nodes
    • pglast.enums — Enumerated constants
    • pglast.keywords — Various kinds of PostgreSQL keywords
    • pglast.stream — The serialization machinery
    • pglast.printers — Specialized printer functions
    • pglast.printers.sfuncs — Special function printers
    • pglast.visitors — Other ways to inspect and manipulate the AST

Indices and tables¶

  • Index
  • Module Index
  • Search Page

pglast

Navigation

Contents:

  • Introduction
  • Installation
  • Development
  • Examples of usage
  • API documentation

Related Topics

  • Documentation overview
    • Next: Introduction

Quick search

©2022, 2018, 2019, 2020, 2021, 2022 Lele Gaifax. | Powered by Sphinx 1.8.5 & Alabaster 0.7.8 | Page source