Drift 2.14
simolus3
released this
04 Dec 10:38
·
725 commits
to develop
since this release
New features in drift:
- Add the
QueryInterceptor
API to easily monitor or transform all database calls made by drift. - Add the
count()
extension on tables to easily count rows in tables or views. - For updates made in drift files, we now support the column-name-list syntax.
Changes to the generator:
- Breaking change: The name of the generated row class derived from the name of the Dart table name now supports more forms of plurals. For instance, a table without a
@DataClassName
annotation namedCategories
would now generate aCategory
class instead ofCategorie
. This is done in a minor release because we assume users previously running into this are already using@DataClassName
as a workaround. - Make versioned schema snapshots generated by
drift_dev schema steps
public. - Don't generate
const
row classes when they are extending a class which isn't const. - Fix indices attached to tables not generating reliably.