Drift 1.5.0
·
1993 commits
to develop
since this release
- Add
DataClassName.extending
to control the superclass of generated row classes. - Add
setup
parameter to the constructors ofWebDatabase
too. - Don't write variables for expressions in
CREATE VIEW
statements. - Improve stack traces for errors on a remote isolate.
- Add
MultiExecutor.withReadPool
constructor to load-balance between multiple reading executors. This can be used in a multi-isolate approach if some queries are expensive.
drift_dev
also has new features:
- Add
validateDatabaseSchema
extension topackage:drift_dev/api/migrations.dart
. It validates that the schema of a database at runtime matches what one would expect. This can be used to test the correctness of migrations at runtime without special testing code. - New features in sqlite 3.38 are supported in analyzed queries and drift files when changing the dialect version in the build options.