Skip to content

sqlite_async-v0.14.0

Choose a tag to compare

@github-actions github-actions released this 13 Apr 09:47
· 10 commits to main since this release
c137dce
  • Support versions 3.x of the sqlite3 package and 0.7.x of sqlite3_web.
  • Remove the sqlite3_open.dart library, 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 AbstractDefaultSqliteOpenFactory and DefaultSqliteOpenFactory. Use SqliteOpenFactory instead. To provide a custom open factory, import NativeSqliteOpenFactory or WebSqliteOpenFactory with a platform-specific import and extend those classes.
  • Breaking: Remove the maxReaders parameter on SqliteDatabase. Set that parameter on SqliteOptions instead.
  • Breaking: Remove libraries exporting the sqlite3 package:
    • Instead of package:sqlite_async/sqlite3.dart, import package:sqlite3/sqlite3.dart.
    • Instead of package:sqlite_async/sqlite3_common.dart, import package:sqlite3/common.dart.
    • Instead of package:sqlite_async/sqlite3_wasm.dart, import package:sqlite3/wasm.dart.
    • Instead of package:sqlite_async/sqlite3_web.dart, import package:sqlite3_web/sqlite3_web.dart.
  • Breaking: Remove SqliteDatabaseMixin and SqliteQueries. Extend SqliteConnection instead.
  • Breaking: Calls locking the database that fail with a timeout now throw an AbortException instead of a TimeoutException.
  • The throttle parameter on watch and onChange can now be set to null. This also introduces watchUnthrottled and onChangeUnthrottled, which only buffer on paused subscriptions instead of applying a static timeout.
  • Add abortableReadLock and abortableWriteLock. The methods can be used to acquire a read/write context with a flexible abort signal instead of a static timeout.