Show HN: A SQL parser and type checker written in TypeScript types
Category: devtools
Tags: typescript, sql, type-checking, database, postgresql
Score: 7.8/10 (Innovation: 8, Technical: 9, Documentation: 8, Utility: 6)
TypeSQL is a TypeScript library that parses and type-checks SQL queries entirely within the TypeScript type system, providing exact row and parameter types without code generation or database connections. It supports PostgreSQL and SQLite, with MySQL planned, and integrates with popular ORMs and editors. This approach eliminates a common pain point for TypeScript backend developers by catching SQL errors at compile time.
Target audience: backend developers
Repository: https://github.com/ismailkarsli/TypeSQL · TypeScript · MIT · 25 stars
View on Hacker News