github arthurfiorette/prisma-json-types-generator v6.0.1

56 minutes ago

Fixes slow and hanging prisma generate --sql with many TypedSQL queries.

  • prisma generate --sql no longer hangs for about a minute after generation. On pg versions older than 8.19, that wait ended with a queryCallback is not a function crash.
  • 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

Full Changelog: v6.0.0...v6.0.1

Don't miss a new prisma-json-types-generator release

NewReleases is sending notifications on new releases.