Skip to content

Drift 2.18.0

Latest
Compare
Choose a tag to compare
@simolus3 simolus3 released this 04 May 22:19
· 33 commits to develop since this release
drift-2.18.0
7d1430c

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 and jsonb_group_array functions now contain an orderBy and filter parameter.

Fixes

  • Improve finding the correct import alias in generated code for part files.