Skip to content

orm-v5.1.0

Compare
Choose a tag to compare
@medz medz released this 15 Sep 07:40
· 85 commits to main since this release

To install Prisma ORM for Dart v5.1.0 run this command

dart pub add orm:^5.1.0

Or update your pubspec.yaml file:

dependencies:
  orm: ^5.1.0

What's Changed

  • upstream: Starting from Prisma v5.17.0, the new RAW raw SQL protocol has been enabled.
  • $raw: Now $raw.query returns the correct data type front, instead of dynamic.
  • $raw: $raw.execute now returns the number of rows affected as an int.
  • docs: Removed param from docs that are no longer supported by the Prisma CLI

QueryRaw performance improvements

We’ve changed the response format of queryRaw to decrease its average size which reduces serialization CPU overhead.

When querying large data sets, we expect you to see improved memory usage and up to 2x performance improvements.

‼️Important Tips

Starting from version v5.1.0, only Prisma CLI v5.17.0 or higher is supported!