PackageTrack
Sign in Get early access

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
Release Pre-release Withdrawn

Releases

latest 60 of 93
  1. 2.34.5 22 Jul 2026
    Release notes
    • Escape SQL column names that are reserved Dart keywords (e.g. class) when
      deriving the Dart getter name.
    Open source →
    Release notes
    • Escape SQL column names that are reserved Dart keywords (e.g. class) when deriving the Dart getter name.
    Open source →
  2. 2.34.4 14 Jul 2026
    Release notes

    Fix version number typo in changelog

    Open source →
    Release notes
    • Schema verifier: Treat TRUE/FALSE as equal to 1/0, respectively.
    Open source →
  3. 2.34.3 11 Jul 2026
    Release notes

    Fix version number typo in changelog

    Open source →
    Release notes
    • Fix a bug introduced in version 2.24.2 where deserializing cached elements could cause Unknown pending element errors.
    Open source →
  4. 2.34.2 06 Jul 2026 withdrawn

    Nothing published for this version

  5. 2.34.2+1 07 Jul 2026
    Release notes

    We rely on SourceFile.codeUnits, added in 1.10.0.

    Open source →
    Release notes
    • Drift files: Support for dart placeholder in update statements to reference companions.
    • Allow circular references between tables (#3780).
    Open source →
  6. 2.34.1 21 Jun 2026 withdrawn
    Release notes

    drift 2.34.1

    • Fix reads queued in a MultiExecutor connection 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 update statements to reference companions.
    • Allow circular references between tables (#3780).

    sqlparser 0.44.6

    • Fix join analysis to properly treat the left side of a RIGHT or FULL join as nullable (#3812).
    • Fix CaseInsensitiveMap.containsKey to be case-insensitive.
    Open source →
  7. 2.34.1+1 22 Jun 2026
    Release notes
    • Require analyzer version 13.
    • Support latest cli_util versions.
    Open source →
  8. 2.34.0 10 Jun 2026
    Release notes
    • Add setup callback to validateDatabaseSchema in VerifySelf extension.
    • Fix generating code for table classes with a $ in their name.
    • Add the use_sql_table_name_for_accessors build option, naming the table getters on the database class after the table's SQL name instead of the Dart class name.
    Open source →
  9. 2.33.0 03 May 2026
    Release notes
    • Drift files: Support features from SQLite version 3.53.
    Open source →
  10. 2.32.1 22 Mar 2026
    Release notes
    • 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.
    Open source →
  11. 2.32.0 28 Feb 2026
    Release notes
    • Support version 3.x of the sqlite3 package.
    Open source →
  12. 2.31.0 03 Feb 2026
    Release notes
    • Fix JSON serialization for views referencing a nullable wrapper of a non-nullable column with a type converter attached to it.
    Open source →
  13. 2.30.1 12 Jan 2026
    Release notes
    • make_migrations: Don't generate schema test helpers when --no-test is set.
    • Generate managers entrypoint for @DriftAccessors as well.
    • Add ValidationOptions parameter to testWithDataIntegrity.
    Open source →
  14. 2.30.0 05 Dec 2025
    Release notes
    • 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.
    Open source →
  15. 2.29.0 18 Oct 2025
    Release notes
    • Fix invalid schema code for views.
    • Add the known_tables option. It allows defining external tables assumed to be available without including them in the drift-managed schema.
    • Make-migrations: Add --no-test option to disable generating tests.
    Open source →
  16. 2.28.3 21 Sep 2025
    Release notes
    • Remove dependencies on discontinued build packages.
    • Fix false-positive warnings about imported files not being referenced.
    Open source →
  17. 2.28.2 05 Sep 2025
    Release notes
    • Fix generating code for typedefs with different parameters than the type they point to.
    • Support analyzer version 8.x
    • When no other option is set, assume SQLite version 3.38.0 when analyzing drift files (used to be 3.31.0).
    Open source →
  18. 2.28.1 29 Jul 2025
    Release notes
    • Support package:build version 3.
    Open source →
  19. 2.28.1-dev.0 13 Jul 2025 pre-release

    Nothing published for this version

  20. 2.28.0 13 Jul 2025
    Release notes
    • Include preamble from drift build options in generated schema code.
    • Fix generated code not copying function expressions correctly.
    Open source →
  21. 2.27.0 14 Jun 2025
    Release notes
    • Fix generating versioned schema code for columns referencing other columns in generatedAs expressions.
    • Use proper impport statements when generating schema code.
    • Schema validation: Allow ignoring column constraints.
    Open source →
  22. 2.26.1 03 May 2025
    Release notes
    • Fix generatedAs not being generated for versioned schema imports.
    • Avoid the use of the shared database cache in the SchemaVerifier implementation.
    • Fix crash when drift_dev schema dump is used on SQLite databases with triggers, views or indexes.
    • CLI: Don't exit with code 0 when no command was selected.
    Open source →
  23. 2.26.0 08 Mar 2025
    Release notes
    • 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.
    Open source →
  24. 2.25.2 14 Feb 2025
    Release notes
    • Fix generateInsertable: true on @UseRowClass not respecting inherited getters.
    • Fix lints in generated test code for make-migrations.
    Open source →
  25. 2.25.1 10 Feb 2025
    Release notes
    • Fix schema exports ignoring store_date_time_values_as_text: true when Dart tables with default constraints on columns are involved.
    Open source →
  26. 2.25.0 08 Feb 2025
    Release notes
    • 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_test if the core test package is unavailable and warn when database class needs changes for test.
    Open source →
  27. 2.24.0 21 Jan 2025
    Release notes
    • Support versions 7.x of the analyzer package.
    Open source →
  28. 2.23.1 05 Jan 2025
    Release notes
    • 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.
    Open source →
  29. 2.23.0 27 Dec 2024
    Release notes
    • Fix custom companion names on @DataClassName not being recognized.
    • Improve schema exports to resolve default values instead of embedding their source.
    • Update dependencies to support latest dart_style version.
    • Fix generating dialect-specific code when only a single dialect (that isn't sqlite3) is enabled.
    Open source →
  30. 2.22.1 04 Dec 2024
    Release notes
    • Fix generating Dart expressions without an inferred type.
    Open source →
  31. 2.22.0 28 Nov 2024
    Release notes
    • 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.dart in favor of package: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_required builder option.
    • Support the dbstat table in drift-file queries when enabling the dbstat module.
    • Fix make-migrations using invalid import URIs in generated test on Windows.
    Open source →
  32. 2.21.2 26 Oct 2024
    Release notes
    • Fix test template generated by make-migrations to not assume the name of the database class.
    Open source →
  33. 2.21.1 24 Oct 2024
    Release notes
    • Fix generated code missing question marks for nullable types in some instances.
    Open source →
  34. 2.21.0 14 Oct 2024
    Release notes
    • Fix Dart-defined check constraints not being considered in exported schemas.
    • Columns can now be defined with late final fields. 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.yaml definitions pass build_runner doctor.
    • Fix generate_manager option not consistently being applied to modular builds.
    • Add the make-migrations command which combines the existing schema commands into a single tool.
    Open source →
  35. 2.20.3 10 Sep 2024
    Release notes
    • Fix internal serialization-related errors for triggers targeting views.
    Open source →
  36. 2.20.2 08 Sep 2024
    Release notes
    • 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 export not respecting column constraints of the target dialect.
    Open source →
  37. 2.20.1 18 Aug 2024
    Release notes
    • Fix a code generation bug causing managers to reference the wrong column when building joins.
    Open source →
  38. 2.20.0 16 Aug 2024
    Release notes
    • Add drift dev schema export command, which exports the DDL statements making up a database schema based on its definition in source.
    Open source →
  39. 2.19.1 18 Jul 2024
    Release notes
    • Fix drift_dev schema dump not working with older versions of the analyzer package that are still supported by drift_dev.
    Open source →
  40. 2.19.0 11 Jul 2024
    Release notes
    • Fix generated CREATE VIEW statements 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 steps generating invalid code when no migrations have been defined yet.
    • Fix generated imports for extension member references in modular mode.
    Open source →
  41. 2.18.0 04 May 2024
    Release notes
    • Add support for the geopoly extension in drift files.
    • Improve finding the correct import alias in generated code for part files.
    Open source →
  42. 2.17.0 20 Apr 2024
    Release notes
    • Fix drift using the wrong import alias in generated part files.
    • Add the use_sql_column_name_as_json_key builder option.
    • Add a setup parameter to SchemaVerifier. It is called when the verifier creates database connections (similar to the callback on NativeDatabase) and can be used to register custom functions.
    Open source →
  43. 2.16.0 24 Feb 2024
    Release notes
    • Keep import alias when referencing existing elements in generated code (#2845).
    Open source →
  44. 2.15.0 17 Jan 2024
    Release notes
    • Potentially breaking change: Fix a bug causing NULL column 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 the NULL column constraint to be there. After upgrading, you can either drop the NULL constraint from your drift files to make it consistent with the schema (since NULL column constraints are the default ignored by sqlite3), or increment the schema version and run a TableMigration on affected tables to make column constraints consistent.
    Open source →
  45. 2.14.1 12 Dec 2023
    Release notes
    • Fix inconsistencies when generating Variable instances for columns with custom types.
    • Fix a build performance regression introduced in version 2.14.0 related to analyzing imports in drift files.
    Open source →
  46. 2.14.0 04 Dec 2023
    Release notes
    • 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 named Categories would now generate a Category class instead of Categorie. This is done in a minor release because we assume most users are using @DataClassName in those cases.
    • 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.
    Open source →
  47. 2.13.2 11 Nov 2023
    Release notes
    • Fix generated queries relying on custom types.
    Open source →
  48. 2.13.1 29 Oct 2023
    Release notes
    • Add has_separate_analyzer option to optimize builds using the not_shared builder.
    • Avoid illegal references to implicitly nullable variant of type converter when no such field exists.
    Open source →
  49. 2.13.0 20 Oct 2023
    Release notes
    • Fix indices not being created for Dart tables from different files.
    • Fix type converters on int64 columns not propagating properly.
    Open source →
  50. 2.12.1 27 Sep 2023
    Release notes
    • Fix invalid types listed in views crashing the generator.
    • Fix indices in drift files crashing the generator when they index expressions.
    Open source →
  51. 2.12.0 24 Sep 2023
    Release notes
    • Adds the static getter $name to generated table classes.
    • Recognize and analyze the @TableIndex annotation.
    Open source →
  52. 2.11.2 07 Sep 2023
    Release notes
    • Follow export directives when looking for table imports.
    Open source →
  53. 2.11.1 27 Aug 2023
    Release notes
    • Reduce the amount of assets read by drift, improving build performance and enabling faster incremental rebuilds.
    • Fix missing import references around @UseRowClass with generateInsertable: true when modular code generation is enabled.
    • Support references to builtin sqlite3 tables in drift files.
    Open source →
  54. 2.11.0 11 Aug 2023
    Release notes
    • 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 dialects builder option to generate code supporting multiple SQL dialects.
    • Add the preamble option for non-shared or modular build setups to mirror the preamble option from source_gen:combining_builder.
    Open source →
  55. 2.10.0 13 Jul 2023
    Release notes
    • Add the schema steps command 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 via tables or views explicitly.
    Open source →
  56. 2.9.0 18 Jun 2023
    Release notes
    • Add fatal_warnings builder option to fail the build when drift reports warnings.
    Open source →
  57. 2.8.3 01 Jun 2023
    Release notes
    • Allow Dart-defined tables to reference imported tables through SQL #2433.
    Open source →
  58. 2.8.2 16 May 2023
    Release notes
    • Fix generated to write qualified column references for Dart components in drift files if the same table is available under different names.
    Open source →
  59. 2.8.1 15 May 2023
    Release notes
    • Add documentation comments for comments on columns in drift files.
    • Fix modular generation not generating imports correctly with the latest analyzer.
    Open source →
  60. 2.8.0 10 May 2023
    Release notes
    • Support named constructors for existing row types in drift files (#2399).
    • Fix compilation issues with analyzer: 5.12.0.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive