Releases: xialvjun/ts-sql-plugin
Releases · xialvjun/ts-sql-plugin
Cache
TypeScript 4
For TypeScript 3 please use 0.8.x version
watch mode
Use --watch
flag of cli for realtime sql emit process or notify about errors.
emit sql
// you can emit sql to explicit file
// this will be emitted to emit-sql/allAttribute.sql file
// you may change `emit-sql` folder to another via `--emit-out-dir` option of cli
const s1 = sql`
-- ts-sql-plugin:emit("allAttribute")
select * from subscriptions.attribute
`;
This ability useful for type generation from sql, for example, using tool types-from-sql