gen-sql-type
JSON →A TypeScript code generation library that parses raw SQL statements and generates TypeScript types for result rows and named parameters. Version 1.0.1 is the latest stable release. This library works isomorphic (Node.js and browser) and supports SELECT, UPDATE, DELETE, INSERT statements, alias columns, function calls, quoted identifiers, named parameters, and WITH clauses. It generates both row types and parameter types automatically at runtime or build time. Unlike SQL-to-TypeScript tools that require a database connection, gen-sql-type works purely from SQL strings without schema introspection.
Resources
packagegen-sql-type ↗