sqlite_async-v0.14.0
·
10 commits
to main
since this release
- Support versions 3.x of the
sqlite3package and 0.7.x ofsqlite3_web. - Remove the
sqlite3_open.dartlibrary, SQLite libraries are no longer loaded through Dart. - Breaking: Rewrite the native connection pool implementation.
- Remove isolate connection factories. Simply open the same database on another isolate, it's safe to do so now.
- It is no longer possible to register user-defined functions in Dart. Extensions providing functions in native code can still be used.
- Breaking: Remove
AbstractDefaultSqliteOpenFactoryandDefaultSqliteOpenFactory. UseSqliteOpenFactoryinstead. To provide a custom open factory, importNativeSqliteOpenFactoryorWebSqliteOpenFactorywith a platform-specific import and extend those classes. - Breaking: Remove the
maxReadersparameter onSqliteDatabase. Set that parameter onSqliteOptionsinstead. - Breaking: Remove libraries exporting the
sqlite3package:- Instead of
package:sqlite_async/sqlite3.dart, importpackage:sqlite3/sqlite3.dart. - Instead of
package:sqlite_async/sqlite3_common.dart, importpackage:sqlite3/common.dart. - Instead of
package:sqlite_async/sqlite3_wasm.dart, importpackage:sqlite3/wasm.dart. - Instead of
package:sqlite_async/sqlite3_web.dart, importpackage:sqlite3_web/sqlite3_web.dart.
- Instead of
- Breaking: Remove
SqliteDatabaseMixinandSqliteQueries. ExtendSqliteConnectioninstead. - Breaking: Calls locking the database that fail with a timeout now throw an
AbortExceptioninstead of aTimeoutException. - The
throttleparameter onwatchandonChangecan now be set tonull. This also introduceswatchUnthrottledandonChangeUnthrottled, which only buffer on paused subscriptions instead of applying a static timeout. - Add
abortableReadLockandabortableWriteLock. The methods can be used to acquire a read/write context with a flexible abort signal instead of a static timeout.