drift_dev
Dev-dependency for users of drift. Contains the generator and development tools.
2.34.5
870K downloads/mo
#382 most downloaded on pub.dev
simolus3/drift
What this package is like to depend on
Last release 1 months ago
22 Jul 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 87 of 88 stable releases
4 versions withdrawn
withdrawn after publishing
5 years old
93 releases · first in 2021
17 releases in the last 12 months
see the full history below
Release timeline
93 releases · Oct 2021 to Jul 2026
2022
2023
2024
2025
2026
Releases
latest 60 of 93-
2.34.522 Jul 2026Release notes
Open source →- Escape SQL column names that are reserved Dart keywords (e.g.
class) when
deriving the Dart getter name.
Release notes
Open source →- Escape SQL column names that are reserved Dart keywords (e.g.
class) when deriving the Dart getter name.
- Escape SQL column names that are reserved Dart keywords (e.g.
-
2.34.414 Jul 2026 -
2.34.311 Jul 2026Release notes
Open source →- Fix a bug introduced in version 2.24.2 where deserializing cached elements could cause
Unknown pending elementerrors.
- Fix a bug introduced in version 2.24.2 where deserializing cached elements could cause
-
2.34.206 Jul 2026 withdrawnNothing published for this version
-
2.34.2+107 Jul 2026Release notes
Open source →- Drift files: Support for dart placeholder in
updatestatements to reference companions. - Allow circular references between tables (#3780).
- Drift files: Support for dart placeholder in
-
2.34.121 Jun 2026 withdrawnRelease notes
Open source →drift 2.34.1
- Fix reads queued in a
MultiExecutorconnection pool being resumed in the wrong zone once an executor became available. Because Drift's cancellation tokens are zone-scoped, this could cause queries to be cancelled or observed in the wrong zone (#3824).
drift_dev 2.34.2
- Drift files: Support for dart placeholder in
updatestatements to reference companions. - Allow circular references between tables (#3780).
sqlparser 0.44.6
- Fix join analysis to properly treat the left side of a
RIGHTorFULLjoin as nullable (#3812). - Fix
CaseInsensitiveMap.containsKeyto be case-insensitive.
- Fix reads queued in a
-
2.34.1+122 Jun 2026 -
2.34.010 Jun 2026Release notes
Open source →- Add
setupcallback tovalidateDatabaseSchemainVerifySelfextension. - Fix generating code for table classes with a
$in their name. - Add the
use_sql_table_name_for_accessorsbuild option, naming the table getters on the database class after the table's SQL name instead of the Dart class name.
- Add
-
2.33.003 May 2026 -
2.32.122 Mar 2026Release notes
Open source →- For view columns referencing table columns as an alias, we now copy nullability and type converters from the source column (#3765).
- Fix parsing
references()with analyzer 10.2.0 and later. - Support analyzer versions
>=10.0.0 <13.0.0.
-
2.32.028 Feb 2026 -
2.31.003 Feb 2026Release notes
Open source →- Fix JSON serialization for views referencing a nullable wrapper of a non-nullable column with a type converter attached to it.
-
2.30.112 Jan 2026Release notes
Open source →make_migrations: Don't generate schema test helpers when--no-testis set.- Generate managers entrypoint for
@DriftAccessors as well. - Add
ValidationOptionsparameter totestWithDataIntegrity.
-
2.30.005 Dec 2025Release notes
Open source →- Schema export: Always export generated SQL statements as a reference.
- Schema export: Always use temporary file instead of data URI.
- Support analyzer versions 9.x.
- Support dothand syntax when analyzing Dart sources.
-
2.29.018 Oct 2025Release notes
Open source →- Fix invalid schema code for views.
- Add the
known_tablesoption. It allows defining external tables assumed to be available without including them in the drift-managed schema. - Make-migrations: Add
--no-testoption to disable generating tests.
-
2.28.321 Sep 2025Release notes
Open source →- Remove dependencies on discontinued build packages.
- Fix false-positive warnings about imported files not being referenced.
-
2.28.205 Sep 2025Release notes
Open source →- Fix generating code for
typedefs with different parameters than the type they point to. - Support
analyzerversion 8.x - When no other option is set, assume SQLite version 3.38.0 when analyzing drift files (used to be 3.31.0).
- Fix generating code for
-
2.28.129 Jul 2025 -
2.28.1-dev.013 Jul 2025 pre-releaseNothing published for this version
-
2.28.013 Jul 2025Release notes
Open source →- Include preamble from drift build options in generated schema code.
- Fix generated code not copying function expressions correctly.
-
2.27.014 Jun 2025Release notes
Open source →- Fix generating versioned schema code for columns referencing other columns in
generatedAsexpressions. - Use proper impport statements when generating schema code.
- Schema validation: Allow ignoring column constraints.
- Fix generating versioned schema code for columns referencing other columns in
-
2.26.103 May 2025Release notes
Open source →- Fix
generatedAsnot being generated for versioned schema imports. - Avoid the use of the shared database cache in the
SchemaVerifierimplementation. - Fix crash when
drift_dev schema dumpis used on SQLite databases with triggers, views or indexes. - CLI: Don't exit with code
0when no command was selected.
- Fix
-
2.26.008 Mar 2025Release notes
Open source →- Fix warning on Dart-defined views referencing the same table multiple times.
- Don't generate unnecessary verification code.
- Suggest a test with data integrity when adding a new column without a default
value in
make-migrations.
-
2.25.214 Feb 2025Release notes
Open source →- Fix
generateInsertable: trueon@UseRowClassnot respecting inherited getters. - Fix lints in generated test code for
make-migrations.
- Fix
-
2.25.110 Feb 2025Release notes
Open source →- Fix schema exports ignoring
store_date_time_values_as_text: truewhen Dart tables with default constraints on columns are involved.
- Fix schema exports ignoring
-
2.25.008 Feb 2025Release notes
Open source →- Fix incorrect code when applying non-nullable type converters with a nullable JSON type to nullable column.
- Fix missing outputs for drift files only consisting of imports in modular generation mode.
- Allow generating manager references across different files in modular generation mode.
- Fix class names with dollar signs not being escaped in drift-generated
toString(). - Make-migrations command: Use
flutter_testif the coretestpackage is unavailable and warn when database class needs changes for test.
-
2.24.021 Jan 2025 -
2.23.105 Jan 2025Release notes
Open source →- Generate typed reference-resolving queries through the manager API when modular code-generation is enabled. Previously, this feature was only enabled for monolithic generation modes.
- Fix generating manager code around references when custom row classes are involved.
-
2.23.027 Dec 2024Release notes
Open source →- Fix custom companion names on
@DataClassNamenot being recognized. - Improve schema exports to resolve default values instead of embedding their source.
- Update dependencies to support latest
dart_styleversion. - Fix generating dialect-specific code when only a single dialect (that isn't
sqlite3) is enabled.
- Fix custom companion names on
-
2.22.104 Dec 2024 -
2.22.028 Nov 2024Release notes
Open source →- CLI options dealing with schemas now support views defined in Dart (#3285).
- Pass language version to dart formatter when generating code.
- Deprecate
package:drift_dev/api/migrations.dartin favor ofpackage:drift_dev/api/migrations_native.dart. - Support runtime schema verification on the web.
- Fix generated code missing question marks for nullable types in some instances.
- Add (opt-in)
row_class_constructor_all_requiredbuilder option. - Support the
dbstattable in drift-file queries when enabling thedbstatmodule. - Fix
make-migrationsusing invalid import URIs in generated test on Windows.
-
2.21.226 Oct 2024Release notes
Open source →- Fix test template generated by
make-migrationsto not assume the name of the database class.
- Fix test template generated by
-
2.21.124 Oct 2024Release notes
Open source →- Fix generated code missing question marks for nullable types in some instances.
-
2.21.014 Oct 2024Release notes
Open source →- Fix Dart-defined
checkconstraints not being considered in exported schemas. - Columns can now be defined with
late finalfields. Defining columns with getters=>is still supported too.class MyTable extends Table { // Before: IntColumn get id => integer().autoIncrement()(); // After: late final id = integer().nullable()(); } - Make
build.yamldefinitions passbuild_runner doctor. - Fix
generate_manageroption not consistently being applied to modular builds. - Add the
make-migrationscommand which combines the existing schema commands into a single tool.
- Fix Dart-defined
-
2.20.310 Sep 2024 -
2.20.208 Sep 2024Release notes
Open source →- Strip leading numbers when generating modular accessor names for drift files, fixing syntax errors.
- Support triggers targeting views.
- Include dialect-specific constraints in exported schema files.
- Fix
schema exportnot respecting column constraints of the target dialect.
-
2.20.118 Aug 2024Release notes
Open source →- Fix a code generation bug causing managers to reference the wrong column when building joins.
-
2.20.016 Aug 2024Release notes
Open source →- Add
drift dev schema exportcommand, which exports the DDL statements making up a database schema based on its definition in source.
- Add
-
2.19.118 Jul 2024Release notes
Open source →- Fix
drift_dev schema dumpnot working with older versions of theanalyzerpackage that are still supported bydrift_dev.
- Fix
-
2.19.011 Jul 2024Release notes
Open source →- Fix generated
CREATE VIEWstatements containing existing row class syntax only supposed to be used during static analysis. - Fix Dart views referencing the same column from different table aliases using columns with the same name.
- Fix
drift_dev schema stepsgenerating invalid code when no migrations have been defined yet. - Fix generated imports for extension member references in modular mode.
- Fix generated
-
2.18.004 May 2024Release notes
Open source →- Add support for the
geopolyextension in drift files. - Improve finding the correct import alias in generated code for part files.
- Add support for the
-
2.17.020 Apr 2024Release notes
Open source →- Fix drift using the wrong import alias in generated part files.
- Add the
use_sql_column_name_as_json_keybuilder option. - Add a
setupparameter toSchemaVerifier. It is called when the verifier creates database connections (similar to the callback onNativeDatabase) and can be used to register custom functions.
-
2.16.024 Feb 2024Release notes
Open source →- Keep import alias when referencing existing elements in generated code (#2845).
-
2.15.017 Jan 2024Release notes
Open source →- Potentially breaking change: Fix a bug causing
NULLcolumn constraints not to show up in generated table definitions. This is a breaking change drift's migration tooling is used, since they will not expect theNULLcolumn constraint to be there. After upgrading, you can either drop theNULLconstraint from your drift files to make it consistent with the schema (sinceNULLcolumn constraints are the default ignored by sqlite3), or increment the schema version and run aTableMigrationon affected tables to make column constraints consistent.
- Potentially breaking change: Fix a bug causing
-
2.14.112 Dec 2023Release notes
Open source →- Fix inconsistencies when generating
Variableinstances for columns with custom types. - Fix a build performance regression introduced in version 2.14.0 related to analyzing imports in drift files.
- Fix inconsistencies when generating
-
2.14.004 Dec 2023Release notes
Open source →- 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
@DataClassNameannotation namedCategorieswould now generate aCategoryclass instead ofCategorie. This is done in a minor release because we assume most users are using@DataClassNamein those cases. - Make versioned schema snapshots generated by
drift_dev schema stepspublic. - Don't generate
constrow classes when they are extending a class which isn't const. - Fix indices attached to tables not generating reliably.
- 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
-
2.13.211 Nov 2023 -
2.13.129 Oct 2023Release notes
Open source →- Add
has_separate_analyzeroption to optimize builds using thenot_sharedbuilder. - Avoid illegal references to implicitly nullable variant of type converter when no such field exists.
- Add
-
2.13.020 Oct 2023Release notes
Open source →- Fix indices not being created for Dart tables from different files.
- Fix type converters on
int64columns not propagating properly.
-
2.12.127 Sep 2023Release notes
Open source →- Fix invalid types listed in
viewscrashing the generator. - Fix indices in drift files crashing the generator when they index expressions.
- Fix invalid types listed in
-
2.12.024 Sep 2023Release notes
Open source →- Adds the static getter
$nameto generated table classes. - Recognize and analyze the
@TableIndexannotation.
- Adds the static getter
-
2.11.207 Sep 2023 -
2.11.127 Aug 2023Release notes
Open source →- Reduce the amount of assets read by drift, improving build performance and enabling faster incremental rebuilds.
- Fix missing import references around
@UseRowClasswithgenerateInsertable: truewhen modular code generation is enabled. - Support references to builtin sqlite3 tables in drift files.
-
2.11.011 Aug 2023Release notes
Open source →- Nested result columns in drift files can now refer to any result set (e.g. a table-valued function or a subquery). They were restricted to direct table references before.
- Add the
dialectsbuilder option to generate code supporting multiple SQL dialects. - Add the
preambleoption for non-shared or modular build setups to mirror thepreambleoption fromsource_gen:combining_builder.
-
2.10.013 Jul 2023Release notes
Open source →- Add the
schema stepscommand to generate help in writing step-by-step schema migrations. - Report a warning when Dart tables are implicitly added due to
include. They should be added to a database viatablesorviewsexplicitly.
- Add the
-
2.9.018 Jun 2023Release notes
Open source →- Add
fatal_warningsbuilder option to fail the build when drift reports warnings.
- Add
-
2.8.301 Jun 2023Release notes
Open source →- Allow Dart-defined tables to reference imported tables through SQL #2433.
-
2.8.216 May 2023Release notes
Open source →- Fix generated to write qualified column references for Dart components in drift files if the same table is available under different names.
-
2.8.115 May 2023Release notes
Open source →- Add documentation comments for comments on columns in drift files.
- Fix modular generation not generating imports correctly with the latest analyzer.
-
2.8.010 May 2023Release notes
Open source →- Support named constructors for existing row types in drift files (#2399).
- Fix compilation issues with
analyzer: 5.12.0.