TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: From Postgres Proto to TypeScript – new transpiler for tooling

2 pointsby pyramationabout 1 year ago

1 comment

pyramationabout 1 year ago
My journey to upgrade pgsql-parser to TypeScript led to an exciting discovery in the pganalyze&#x2F;libpg_query repository: protobuf files defining PostgreSQL&#x27;s AST. This discovery inspired me to create a proto-to-TypeScript transpiler, streamlining the process of typing the pgsql-parser and unlocking other cool new features :)<p>The transpiler not only allowed me to add typing for pgsql-parser but also spawned a suite of TypeScript utilities that are invaluable for PostgreSQL development.<p>Explore the tools:<p>pg-proto-parser: <a href="https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pg-proto-parser">https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pg-proto-parser</a> pgsql-parser: <a href="https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser">https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser</a><p>Additionally, we now have new utilities generated by the proto parser, make sure to checkout the @pgsql&#x2F;utils! That has some cool features in it:<p>@pgsql&#x2F;enums: <a href="https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser&#x2F;tree&#x2F;main&#x2F;packages&#x2F;enums">https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser&#x2F;tree&#x2F;main&#x2F;packages&#x2F;...</a> @pgsql&#x2F;types: <a href="https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser&#x2F;tree&#x2F;main&#x2F;packages&#x2F;types">https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser&#x2F;tree&#x2F;main&#x2F;packages&#x2F;...</a> @pgsql&#x2F;utils: <a href="https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser&#x2F;tree&#x2F;main&#x2F;packages&#x2F;utils">https:&#x2F;&#x2F;github.com&#x2F;launchql&#x2F;pgsql-parser&#x2F;tree&#x2F;main&#x2F;packages&#x2F;...</a><p>Hope you enjoy! Please let me know anything you&#x27;d like to see!