oguimbal / pgsql-ast-parser

Yet another simple Postgres SQL parser
304 stars 43 forks source link

Support parsing and tagging lateral joins #149

Closed airhorns closed 11 months ago

airhorns commented 11 months ago

Postgres has a LATERAL keyword that modifies one of the from_items in a selection. It doesn't have to be an explicit join statement but is most often used as such. This adds support for parsing the LATERAL keyword in front of each from_item type that supports it.

See https://www.postgresql.org/docs/current/sql-select.html

Fixes #122

oguimbal commented 11 months ago

released as pgsql-ast-parser@12.0.0 thanks for the PR, and sorry for the wait !