Add support for custom types, which are useful when extending drift to support other database engines.
Add Expression.and and Expression.or to create disjunctions and conjunctions of sub-predicates.
Step-by-step migrations now save the intermediate schema version after each step.
The TypeConverter.json factory reduces the boilerplate needed to define type converters doing JSON conversions.
Backends
Add APIs to setup Wasm databases with custom drift workers.
The drift_postgres package is now available on pub.dev.
Utilities
Drift now provides a DevTools extension embedding the drift inspector written by Koen Van Looveren. When opening DevTools from Flutter's beta channel, a Drift tab is available to inspect open databases.
Drift 2.12.1
This minor release fixes the following issues:
Fix readWithConverter throwing an exception for null values in non-nullable columns (#2640).
Fix * columns in analyzed SQL queries expanding to more columns than what would be correct (#2641).
Fix invalid types listed in views crashing the generator (#2636).
Fix a generator crash when seeing an index referencing expressions instead of columns (#2643).
Drift 2.12.0
This drift release adds support for defining a database index in Dart and improves JSON support.
Full list of changes:
Add support for table-valued functions in the Dart query builder.
Support the json_each and json_tree table-valued functions.
Add the @TableIndex annotation for table classes to add an index to the table.
Add the TypeConverter.json method to define type converters storing JSON values more easily.
Add TypedResult.readWithConverter to read a column with a type converter from a join result row.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps drift from 2.11.1 to 2.13.0.
Release notes
Sourced from drift's releases.
Commits
c854f22
Set drift version number to2.13.0
.fe16061
Add-f
topub lish
in scripte72ef05
Prepare 2.13 release36db7fd
Prepare auto-publishing682e054
Fix one more lint in devtools extension22cbd24
Add changelog entry2ba3dfd
Remove generated code from core package63448dd
Add link to issues and db_viewer026fae9
Integrate db viewer into devtools90db860
Add service extension to run statementsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show