sqflite_tvos 0.0.2
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 —sqlite3ships with tvOS.
⚠️ Limitations / differs from iOS #
- On physical tvOS devices only
Library/Cachesandtmpare writable — opening a database under Documents fails withSQLITE_CANTOPEN(the simulator sandbox permits the write, masking this). The plugin's defaultgetDatabasesPath()resolves underLibrary/Caches, so the canonicalopenDatabase(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.