on-internet
← Community

TypeScript generation for SQL files

Stack Overflow ·

I'm interested to know if anyone has come across a tool that can generate TypeScript type definitions based on the expected result of a SQL query? That is to say, is there a CLI that accepts a SQL schema and .sql file and outputs a .ts file based on the expected result of the query? Such a tool already exists for GraphQL queries and my team has found it extremely useful because it completely removes errors associated with hand-rolled type definitions.

Comments

Sign in or sign up to comment and upvote.

No comments yet.