Releases: simolus3/drift
Releases · simolus3/drift
Release list
drift-2.34.3
- Web: Use navigator locks around OPFS access to avoid file locking issues.
drift-2.34.2
- Web: Flush IndexedDB writes after statements, making writes more reliable.
sqlite3.wasm files are now attached to drift releases directly, making it easier to download compatible workers and WebAssembly files.
Drift 2.34.1
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.
Drift 2.34.0
drift
- Use
BEGIN IMMEDIATEto start transactions. - Make
TableInfo's==andhashCodetake into account the database its attached to.
drift_dev
- 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.
Drift 2.33.0
- Add
lengthextension for blob expressions. - Add
SqlDialect.duckdbfor use with thedrift_duckdbpackage. - Drift files: Support SQLite version 3.53.0.
Drift 2.32.1
- DevTools extension: Make error messages selectable.
- 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.
Drift 2.32.0
- Potentially breaking change Migrate to version 3.x of the
sqlite3package.
To upgrade:- For the web, update
sqlite3.wasmfrom a 3.x release. - If you've previously used
sqlcipher_flutter_libs, see this for encryption support and note that SQLite3MultipleCiphers requires additional pragmas to be compatible with SQLCipher databases.
- For the web, update
serializableConnection(),json1andTableMigrationare no longer marked as experimental.- Improve performance of mapping large result sets through joined select statements.
- In drift files, imports and statements can now be parsed from SQL line comments. This makes drift files easier to use from some SQL editors:
-- import 'tables.drift';
-- deleteById:
DELETE FROM todos WHERE id = :id;
-- allTodos:
SELECT * FROM todos;Drift 2.31.0
- In step-by-step migrations, automatically throw an error if a database downgrade is attempted. This has always been unsupported, but could lead to the database silently having a wrong
user_version. - Fix JSON serialization for views referencing a nullable wrapper of a non-nullable column with a type converter attached to it.
sqlparser version 0.43.1
- Support parsing
DROP,VACUUM,REINDEX,ATTACH,DETACH,SAVEPOINT,RELEASE,ROLLBACK,ANALYZE,PRAGMAandALTER TABLEstatements. - Add
SchemaBufferclass to applyALTER TABLEandDROPstatements toCREATEstatements.
Drift 2.30.1
drift 2.30.1
- Web: Fix databases being moved from IndexedDB to OPFS even if
moveExistingIndexedDbToOpfsis disabled.
drift_dev 2.30.1
make_migrations: Don't generate schema test helpers when--no-testis set.- Generate managers entrypoint for
@DriftAccessors as well. - Add
ValidationOptionsparameter totestWithDataIntegrity.
sqlparser 0.43.0
- Allow parsing SQL from
FileSpans, which is convenient for SQL embedded as text in outer structures.
Drift 2.30.0
Drift
- Add
rightOuterJoinandfullOuterJoin. - Wasm: Add the
WasmProbeResult.moveFromIndexedDBToOpfs()method and themoveExistingIndexedDbToOpfsparameter onWasmDatabase.open. They can be used to move an existing database stored in IndexedDB to OPFS.
drift_flutter
- Add
isolateSetupparameter toDriftNativeOptionsto setup isolates spawned to host database connections.
Generator
- 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.
- Analysis: Support features added in SQLite version 3.51.0