Fixes slow and hanging prisma generate --sql with many TypedSQL queries.
prisma generate --sqlno longer hangs for about a minute after generation. Onpgversions older than 8.19, that wait ended with aqueryCallback is not a functioncrash.- All TypedSQL queries are now described in a single database round trip instead of one each. With 187 queries over a 50 ms connection, the generator step went from 10.6 s to 0.6 s.
If you see the crash above, also update pg to 8.23.1 or later, the version range this package supports.
What's Changed
- Fix TypedSQL describe hang and per-query round trips by @arthurfiorette in #728
Full Changelog: v6.0.0...v6.0.1