Skip to content

Drift 1.5.0

Compare
Choose a tag to compare
@simolus3 simolus3 released this 13 Mar 16:22
· 1993 commits to develop since this release
c6edcdf
  • Add DataClassName.extending to control the superclass of generated row classes.
  • Add setup parameter to the constructors of WebDatabase 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 to package: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.