This is a proof of concept method for inferring Typescript types from a string literal containing raw SQL.
It is assuming database introspection was used to create a generated Typescript type that corresponds to the database's schema.
No other code generation is used.
To run:
npm i
from the project root- navigate to main.ts and mouseover SelectTest