Drift 2.18.0
simolus3
released this
04 May 22:19
·
491 commits
to develop
since this release
Manager APIs
The biggest new feature in this release is the addition of manager APIs, which make it much easier to write common simple queries. The new API has been designed to be easier to use and to avoid boilerplate for common CRUD queries. This feature requires additional code to be generated - if you prefer using the existing APIs exclusively, you can use the generate_manager: false
builder option.
Other additions
- Drift now supports geopoly tables and queries in
.drift
files if the extension is enabled. - Add
AggregateFunctionExpression
to write custom aggregate function invocations in the Dart query builder. - The
json_group_array
andjsonb_group_array
functions now contain anorderBy
andfilter
parameter.
Fixes
- Improve finding the correct import alias in generated code for part files.