Get the latest tech news
Show HN: Parse your Postgres queries into a fully-typed AST in TypeScript
Parse your Postgres queries into a 100% type-safe AST (powered by libpg_query) - pg-nano/pg-parser
Upon install, the pre-compiled binary for your operating system and architecture will be pulled from GitHub Releases. Note: There is no deparse function (for turning an AST back into a string) included, as this isn't needed for my use case. This enables the clangd language server for features like autocomplete, static analysis, and code navigation.
Or read this on Hacker News