TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 pyramation大约 1 年前

1 comment

pyramation大约 1 年前
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!