v8.0.0-rc.1-dev.45
📦 prismaView on GitHub →
✨ 6 features🔧 2 symbols
Summary
The affected-row-counts project is now complete, with count-returning writes using a single statement and returning database-reported statistics. Documentation has been updated to reflect current behavior and supported operations.
✨ New Features
- Query and execute operations now have distinct lifecycles and results: queries stream rows, while executions report affected-row statistics.
- SQL and MongoDB provide clearer update and delete counts, including no-op updates and deleted-document totals.
- Prepared statement and transaction behavior is documented with clearer lazy execution and resource handling details.
- The SQL driver SPI has separate row-query and statement-statistics operations, with prepared-ness carried by the request handle.
- Postgres and SQLite return real `affectedRows` values, and Mongo maps `modifiedCount` or `deletedCount` according to the command kind.
- `updateAndCount` and `deleteAndCount` issue one write statement; integration coverage proves the returned count comes from that write.