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.
Traffic · last 30 days stale · no recent hits
total hits 8
actors 3 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada
Resources
packagegen-sql-type ↗