3 ms·
Just in the off-chance this is useful to someone: If you find yourself needing the Postgres parser elsewhere, e.g. in some custom tooling to analyze SQL queries
by lfittl 9y ago
Just in the off-chance this is useful to someone: If you find yourself needing the Postgres parser elsewhere, e.g. in some custom tooling to analyze SQL queries, I extracted it into a library some time ago:
https://github.com/lfittl/libpg_query https://github.com/lfittl/libpg_query
Your comment still applies though, as a lot of the parser output is very specific to the chosen Postgres version (10 at the moment) and can change unpredictably.
- teej 9y agoI am in the middle of a project similar to what uber is doing and it leans very heavily on this library. Thank you so much for this! I would not have been able to pull it off without libpg_query.
- arnon 9y agoThere's also HSSQLPPP for Postgres, and it's written in Haskell https://github.com/JakeWheat/hssqlppp https://github.com/JakeWheat/hssqlppp
- gilmi 9y agoOr simple-sql-parser by the same author which is just a parser. https://github.com/JakeWheat/simple-sql-parser https://github.com/JakeWheat/simple-sql-parser