Skip to main content

sqflite_common_ffi 2.4.7 copy "sqflite_common_ffi: ^2.4.7" to clipboard
sqflite_common_ffi: ^2.4.7 copied to clipboard

sqflite ffi based implementation, for desktop and units tests.

2.4.7 #

  • Error message starts with DatabaseException(ffi <code> <result code>: ...) like the native implementations (it was SqfliteFfiException(...), a type that is not exported: catch DatabaseException); the message is no longer printed twice when using an isolate or a web worker
  • Doc: handling errors (README, isUniqueConstraintError(), getResultCode())

2.4.6 #

  • createDatabaseFactoryFfi(noIsolate: true, ffiInit: ...) calls ffiInit once instead of before every database call
  • A throwing ffiInit makes the database calls fail with its error (they waited forever); the next call tries again
  • A batch statement ending the transaction (INSERT OR ROLLBACK...) inside transaction() reports its own error instead of cannot rollback - no transaction is active
  • Closing or deleting a database with an open cursor releases the cursor (the file stayed locked, database is locked when opened again)
  • Doc: README (SQLite bundled by the build hooks), example, encryption with the sqlite3mc/sqlcipher hooks, dartdoc (ffiInit, the shared background isolate)

2.4.5 #

  • Remove the database tracker (hot restart workaround). With a SQLite built with shared cache (e.g. source: system on Linux), each new sqflite isolate closed the live connections of the other ones, which then failed with SqliteException(21) (#1218, thanks to iulian0512). On hot restart, package:sqlite3 3.x already closes the connections when the isolate group shuts down.
  • Opening a file: uri database creates its parent directory from the file path (it created a file: directory in the current directory)

2.4.4 #

  • Release closed and deleted databases (they were kept in memory forever), an operation on a closed database still fails with a database closed error
  • Deleting an open single instance database marks it closed like closing it (hot restart cleanup)

2.4.3 #

  • Add sqflite-common-ffi-desktop and sqflite-common-ffi-testing agent skills in skills/, installable with dart run skills@ get

2.4.2+1 #

  • Add SqfliteFfiIsolatePortServer and the isolatePortServer parameter of createDatabaseFactoryFfi to allow sharing the sqflite isolate between isolates (used by the sqflite_ffi flutter package with IsolateNameServer).

2.4.1 #

  • Requires dart 3.12

2.4.0+3 #

  • Requires dart 3.10
  • sqflite3: >=3.0.0
  • Support build hooks and remove bundled dll
  • To support sqlite3 v2 use version 2.3.7

2.3.7+1 #

  • fix sqlite3 dependency to ^2.9.4
  • Last version supporting sqlite3 v2 to use with this explicit constraint as earlier version allow sqlite3 up to <4.0.0:
  sqflite_common_ffi: ">=2.3.7 <2.4.0"

or

  sqflite_common_ffi: ^2.3.7
  sqlite3: ^2.9.4

2.3.6+1 #

  • Bundle Windows sqlite3.dll 3.50.1
  • sqflite3: >=2.9.3

2.3.5 #

  • Requires dart 3.7

2.3.4+4 #

  • Improve sqlite3.dll finder on windows
  • Fix conditional import for web support
  • Fix dev archive deps to 4.0.0

2.3.3+2 #

  • Remove dependency on dart:html.

2.3.2+1 #

  • sqflite3: >= 2.3.0
  • Supports transaction rolled back by an inner statement.

2.3.1 #

  • sqflite3: >= 2.2.0
  • sdk: >= 3.2.0

2.3.0+4 #

  • Support PRAGMA sqflite -- db_config_defensive_off
  • Dart 3 only.
  • Bundle Windows sqlite3.dll 3.42.0

2.2.5 #

  • Export global sqflite API

2.2.4 #

  • Dart 3 support

2.2.3 #

  • Depends on sqlite3 >= 1.11.0

2.2.2 #

2.2.1+1 #

  • strict-casts and sdk 2.18 support

2.2.0+1 #

  • Implements Database.queryCursor() and Database.rawQueryCursor()
  • base for experimental web support
  • Support for transaction v2

2.1.1 #

  • Windows binary 3.38.2

2.1.0+2 #

  • Add databaseFactoryFfiNoIsolate
  • Fix windows release mode for basic ffi setup

2.0.0+3 #

  • nnbd support
  • Improved sqlite shared lib loading mechanism to support alternate library.

1.1.1+3 #

  • Fixes hot-restart lock issue
  • Fixes missing databaseExists handler
  • Don't load bundled sqlite3.dll on windows release mode.

1.1.0+1 #

  • Use sqlite3 instead of moor_ffi

1.0.0+4 #

  • Support extended result code exception

1.0.0+1 #

  • Initial revision from sqflite_ffi_test experimentation
321
likes
160
points
737k
downloads

Documentation

API reference

Publisher

verified publishertekartik.com

Weekly Downloads

sqflite ffi based implementation, for desktop and units tests.

Repository (GitHub)
View/report issues

Topics

#sql #database

Funding

Consider supporting this project:

github.com

License

BSD-2-Clause (license)

Dependencies

meta, path, sqflite_common, sqlite3, synchronized

More

Packages that depend on sqflite_common_ffi