TypeScript
The same analysis as for Rust — the catalog rebuilt from your schema or migrations, every query typed as PostgreSQL would — with code generated for TypeScript:
- Named queries first. The
.sqlfiles ofqueries/become.d.tsdeclarations, with a thin runtime overpgorpostgres: parameters and rows typed,nullexactly where a value can be null, the return type following the number of rows. - Then queries in TypeScript files. A SQL string written in a
.tsfile, found by the generator and typed in place, with a Vite plugin and a watch mode.
Until then, pgzest describe gives the descriptors of named queries as
JSON — see Languages.
pgzest is made by Creatiwity, free and open source under the MIT or Apache-2.0 license.