Skip to content

Automatically Generate Types from Database queries #39

@ForbesLindesay

Description

@ForbesLindesay

I would like to be able to automatically generate types from the database queries. To do this:

  • Build an SQL parser that is flexible in how it handles placeholders that could be replaced with other SQL, and which supports a reasonable subset of the postgres/mysql/sqlite syntax - being worked on in feat: create an SQL parser #20
  • Write util to extract queries from typescript files
  • Write util to extract type from parsed SQL query and database schema
  • Tie everything together in an awesome CLI

Metadata

Metadata

Labels

enhancementNew feature or requestwontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions