sql-typegen
v0.0.19
Published
To run:
Downloads
38
Readme
sql-typegen
To run:
npx sql-typegen \
--database postgresql://<username>:<password>@<hostname>/<database> \
--table countries
This will generate a file called country.ts:
export interface Country {
country_id: number;
name: string;
population: bigint | null;
continent_id: number;
}