Hacker News·13 min read

Show HN: SQLBraid – Write SQL directly in TypeScript without a query-builder DSL

C
Clickin
Show HN: SQLBraid – Write SQL directly in TypeScript without a query-builder DSL
Dive DeeperCreate a free account to unlock

Write SQL. Keep TypeScript. Skip the query-builder translation layer.

SQLBraid is a SQL-first data-access toolkit for TypeScript. It keeps ordinary SQL visible while adding safe value binds, readable dynamic SQL, explicit result contracts, Standard Schema result mapping, physical connection ownership, and driver-owned transports.

pnpm add sqlbraid On Node.js 22.18 or newer, save this as quickstart.mts and run node quickstart.mts . It creates and closes its own in-memory database:

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in