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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

PgJQ: Use Jq in Postgres SQL

8 点作者 fforflo超过 1 年前

1 comment

fforflo超过 1 年前
I recently ported some rather complex JQ programs to jsonb &amp; jsonpath queries. After a while, it became too cumbersome, so I paused for a few days and developed this Postgres extension.<p>pgJQ embeds the standard jq compiler and brings the much-loved jq lang to Postgres.<p>It adds a jqprog data type to express jq programs and a jq(jsonb, jqprog) function to execute them on jsonb objects. It works seamlessly with standard jsonb functions, operators, and jsonpath.