sqflite_tvos 0.0.2 copy "sqflite_tvos: ^0.0.2" to clipboard
sqflite_tvos: ^0.0.2 copied to clipboard

tvOS (Apple TV) implementation of the sqflite Flutter plugin, provided by flutter-tvos.

sqflite_tvos #

tvOS implementation of sqflite for flutter-tvos (port of sqflite_darwin).

Generated by flutter-tvos plugin port (modular-SwiftPM podspec).

Usage #

dependencies:
  sqflite: ^2.x
  sqflite_tvos: ^0.0.1
  path_provider_tvos: ^0.0.1   # for a writable DB directory

tvOS support #

✅ Supported #

  • Full SQLite: openDatabase, execute, rawQuery, query, insert, update, delete, transactions, batches — sqlite3 ships with tvOS.

⚠️ Limitations / differs from iOS #

  • On physical tvOS devices only Library/Caches and tmp are writable — opening a database under Documents fails with SQLITE_CANTOPEN (the simulator sandbox permits the write, masking this). The plugin's default getDatabasesPath() resolves under Library/Caches, so the canonical openDatabase(join(await getDatabasesPath(), 'x.db')) works on hardware. Note tvOS storage is purgeable by platform contract: the OS may evict Caches at any time, so data that must survive needs a server or iCloud Key-Value Storage, not the local filesystem.

❌ Not supported on tvOS #

  • None for core SQLite usage.

See PORTING_REPORT.md for the port detail and checklist.

0
likes
140
points
2.91k
downloads

Documentation

API reference

Publisher

verified publisherfluttertv.dev

Weekly Downloads

tvOS (Apple TV) implementation of the sqflite Flutter plugin, provided by flutter-tvos.

Homepage
Repository (GitHub)
View/report issues

License

BSD-2-Clause (license)

Dependencies

flutter, sqflite_platform_interface

More

Packages that depend on sqflite_tvos

Packages that implement sqflite_tvos