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.

Libraries

sqflite_tvos