Drift 1.1.0
·
2176 commits
to develop
since this release
This release consists of drift
version 1.1.0
, drift_dev
version 1.1.0
and sqlparser
version 0.19.0
:
- Add the
references
method toBuildColumn
to reference a column declared in another Dart table. - Add the
generateInsertable
option to@UseRowClass
. When enabled, the generator will emit an extension to use the row class as anInsertable
. - Allow the generator to emit correct SQL code when using arrays with the
new_sql_code_generation
option in specific scenarios. - Add support for strict tables in
.drift
files. - Add the
generatedAs
method to declare generated columns for Dart tables. - Add
OrderingTerm.random
to fetch rows in a random order. - Improved support for pausing query stream subscriptions. Instead of buffering events, query streams will suspend fetching data if all listeners are paused.
- Drift isolates no longer serialize messages into a primitive format. This will reduce the overhead of using isolates with Drift.
- Initial support for
STRICT
tables defined in.drift
files. - Support for generated columns for tables defined in
.drift
files.
Big thanks to everyone who contributed to this release!