Show HN: SQLBraid – Write SQL directly in TypeScript without a query-builder DSL
Category: database
Tags: typescript, sql, database, query-builder, dynamic-sql, mybatis
Score: 6.8/10 (Innovation: 6, Technical: 7, Documentation: 8, Utility: 6)
SQLBraid is a TypeScript library that lets you write raw SQL in tagged templates with MyBatis-style dynamic conditions inside SQL comments, while safely binding parameters across six database dialects. It provides a unified execution layer over heterogeneous JS drivers (pg, mysql2, oracledb, tedious, node:sqlite) and supports typed results and Standard Schema validation. It's interesting for teams that prefer hand-written SQL over ORMs but still want reusable dynamic filters and cross-database portability.
Target audience: backend developers, full-stack developers, data engineers
Repository: https://github.com/Clickin/SQLBraid · TypeScript · Apache-2.0 · 11 stars
View on Hacker News