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: Better-SQL - Generate sql query from syntax like GraphQL and EdgeDB

7 pointsby aabbcc1241almost 3 years ago

2 comments

aabbcc1241almost 3 years ago
Inspired by the query language of EdgeDB and GraphQL, I created a npm package that can generate sql query from a more concise syntax.<p>Some key features:<p>* select with nested syntax and auto generate join-table statements<p>* auto add table name to each column<p>It comes with a &quot;typescript-playground-style&quot; online demo so you can try it without any setup ;)
评论 #32377600 未加载
gavinrayalmost 3 years ago
I like it!<p>One problem you will run into is putting a LIMIT on relationship queries<p>You can&#x27;t use a limit for this<p><pre><code> select post [ id title # Can&#x27;t generate simple LIMIT here user { nickname } limit 2 ] limit 5</code></pre>
评论 #32392833 未加载