Drift 2.20.0
simolus3
released this
16 Aug 09:09
·
283 commits
to develop
since this release
Drift changes
- Add
readPool
parameter toNativeDatabase
. It will spawn an additional pool of isolates used to serve multiple reads in parallel, which can improve performance in some specific workloads. - Mark legacy
package:drift/web.dart
as deprecated. Users should migrate topackage:drift/wasm.dart
.
drift_dev changes
- Improve manager API to be able to resolve references when running queries.
- Add
TableIndex.sql
, allowing database indexes to be defined in SQL without using drift files. - Add
DataClassName.implementing
, which can be used to make drift-generated row classes implement existing interfaces.
drift_flutter changes
- Add
DriftNativeOptions
withshareAcrossIsolates
option that will give multiple isolates access to the same drift database without having to manually set up ports.