Skip to main content

drift3_preview 3.0.0-alpha.1 copy "drift3_preview: ^3.0.0-alpha.1" to clipboard
drift3_preview: ^3.0.0-alpha.1 copied to clipboard

In-development preview of breaking changes planned for drift version 3.

3.0.0-alpha.1 #

Changes from drift versions 2.x:

  • Breaking change: Rework connection APIs.
    • The QueryExecutor class has been removed. Use DriftSession instead.
    • DatabaseConnection has been renamed to DriftConnection and is always opened lazily now.
    • NativeDatabase has been removed, use sqliteConnectionPool from package:drift_sqlite/native.dart.
    • WasmDatabase is now part of package:drift_sqlite/wasm.dart and requires a new worker.
  • Breaking change: On expressions, isBiggerThan has been renamed to isGreaterThan; isSmallerThan to isLessThan.
  • Breaking change: Top-level join methods (innerJoin and others) are now named constructors on a Join class.
  • Breaking change: Constant has been renamed to Literal.
  • Breaking change: Remove DatabaseConnectionUser.customSelectQuery.
  • Breaking change: SQLite-specific constructs are now exposed through package:drift_sqlite:
    • The storeDateTimesAsText option is now enabled by default.
    • The InsertMode parameter is now available as a .mode() extension on InsertStatement.
  • Breaking change: Make tables STRICT by default. This can be reverted with drift options in build.yaml.
  • Breaking change: Drift manager APIs are now part of the drift_manager package, and no longer generated by default.
  • Add json columns as a builtin type. THey use a binary format by default, this can be changed to text.
  • In Dart table definitions, the trailing () for columns is no longer required.
0
likes
160
points
248
downloads

Documentation

API reference

Publisher

verified publishersimonbinder.eu

Weekly Downloads

In-development preview of breaking changes planned for drift version 3.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

collection, convert, drift, meta

More

Packages that depend on drift3_preview