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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of TypeScript

TypeScript

Photo of Postgres

Postgres

Photo of parse

parse

Related news:

News photo

Show HN: ts-remove-unused – Remove unused code from your TypeScript project

News photo

Rainfrog – a database management TUI for Postgres

News photo

ServiceNow moves its backend off MariaDB to homebrew Postgres