Prisma Dart v5.2.1 & Flutter Integration v0.4.0
To install Prisma ORM for Dart v5.2.1 run this command
dart pub add orm:^5.2.1
Otherwise, update your pubspec.yaml
file:
dependencies:
orm: ^5.2.1
Flutter Integration upgrade to v0.4.0
dependencies:
orm_flutter: ^0.4.0
What's New
- bug: Fixed an issue where unknown errors from the binary engine query were not being properly thrown as exceptions.
- BREAKING CHANGE: Engine is no longer implemented internally, only forwards platform-specific implementations, with iOS and Android support currently implemented.
Optimizations
Now orm_flutter
no longer implements the engine itself, but forwards platform-specific engine implementations.
Implemented orm_flutter_ffi
for Prisma query engine (CABI) implementation:
orm_flutter_android
: Dynamic library for Android platform.orm_flutter_ios
: Dynamic library for iOS platform.
Note
Why split Flutter integration?
Previously, Flutter integration was provided in theorm_flutter
package and only enabled interaction with Prisma query engines (CABI).
Now, it has become universal, and is expected to enable better integration with macOS, Windows, Linux, and the Web in the future.
The most important thing is that the integration method of the Android platform has been optimized. Previously, cmake was used to dynamically download the engine when running flutter run
or flutter build
. Now the engine is included in the integrated specific platform, which greatly speeds up the compilation speed without additional network requirements.