NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #383 most downloaded on pub.dev
Dev-dependency for users of drift. Contains the generator and development tools.
Last release 20 days ago
09 Sep 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
4 versions withdrawn
withdrawn after publishing
5 years old
95 releases · first in 2021
One column per quarter.
Add documentation comments for comments on columns in drift files.
Support named constructors for existing row types in drift files (#2399).
analyzer: 5.12.0.Make validateDatabaseSchema() work in migration tests.
validateDatabaseSchema() work in migration tests.Fix invalid schema verification code being generated for columns with a clientDefault.
clientDefault.Fix generated code for blob columns when modular generation is enabled.
blob columns when modular generation is enabled.Fix an error resolving multiple table references across different files.
The generate_connect_constructor option is now deprecated, as a DatabaseConnection can be passed wherever a QueryExecutor is used too.
MAPPED BY for individual columns in queries or in views defined with SQL.CAST (x AS DATETIME) and CAST(x AS TEXT) in drift files.CAST to an enum type in drift types.generate_connect_constructor option is now deprecated, as a DatabaseConnection
can be passed wherever a QueryExecutor is used too.LIST() columns having the same result class name.@UseDataClass with extending not working with modular generation.async modifier when mapping queries to existing row classes.Nothing published for this version
Improvements and fixes for schema files:
schema generate --companions implicitly requiring --data-classes as well.toColumns() not being generated correctly.schema generate when using existing
row types on views.Add support for textEnum columns in Dart (or ENUMNAME in .drift) to store enum columns as text (via Enum.name).
textEnum columns in Dart (or ENUMNAME in .drift) to store enum columns as text (via Enum.name).case_from_dart_to_sql option with the possible values: preserve, camelCase, CONSTANT_CASE, snake_case, PascalCase, lowercase and UPPERCASE (default: snake_case).drift_dev schema dump can now dump the schema of existing sqlite3 database files as well.customConstraints are now parsed and respected by the generator.Fix a crash in schema generate.
schema generate.Fix a builder crash when importing triggers or indices.
Fix invalid code being generated through drift_dev schema generate.
drift_dev schema generate.Re-implement drift's internal analyzer to make the build process more efficient.
__Potentially breaking bug-fix__: Fix the nullability of columns generated for Dart-defined views.
uniqueKeys overrides into a database schema.analyzer package.Nothing published for this version
Analysis support fts5 tables with external content tables.
fts5 tables with external content tables.rtree module.Generate public typedefs for the signatures of scoped_dart_components, making it easier to re-use them for own methods.
scoped_dart_components,
making it easier to re-use them for own methods.Recognize options for an applied not_shared builder when exporting schemas.
not_shared builder when exporting schemas.Removes the following build options, which are always turned on now:
null_aware_type_convertersnew_sql_code_generationcompact_query_methodsThese changes help reduce complexity in the generator.
Support the latest versions of the analyzer and analyzer_plugin packages.
analyzer and analyzer_plugin packages.Support for new drift 1.7 features like int64 columns.
int64 columns..drift files.Write Dart references into schema files.
check and unique
column constraints in Dart tables.Fix crash when reading dynamic type converters.
Support migrations from moor_flutter to drift_sqflite in the migrate command.
moor_flutter to drift_sqflite in the migrate
command.Add validateDatabaseSchema extension to api/migrations.dart. It validates that the schema of a database at runtime matches what one would expect.
validateDatabaseSchema extension to api/migrations.dart. It validates
that the schema of a database at runtime matches what one would expect.Generator support for the LIST() feature introduced in drift 1.4.
LIST() feature introduced in drift 1.4..drift files not being available in all cases.- Support drift version 1.3.x.
drift version 1.3.x.Support the latest analyzer and analyzer_plugin packages.
analyzer and analyzer_plugin packages.Generate code needed to support streams of views.
Improve error handling around custom row classes.
Consider drift-named files when generating schema migrations
drift-named files when generating schema migrations (#1486)new_sql_code_generation
option in specific scenarios..moor.dart part files in the migrate command.Also transform analysis_options.yaml files in the drift_dev migrate command.
analysis_options.yaml files in the drift_dev migrate command.This is the initial release of the drift_dev package (formally known as moor_generator). For an overview of old moor releases, see its changelog.
This is the initial release of the drift_dev package (formally known as moor_generator).
For an overview of old moor releases, see its changelog.
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →