Sqflite Common Ffi Web Setup

Use when adding sqflite support to a web app (Flutter web or Dart web) with package:sqflite_common_ffi_web: running dart run sqflite_common_ffi_web:setup to install sqlite3.wasm and sqflite_sw.js under web/, databaseFactoryFfiWeb, databaseFactoryFfiWebNoWebWorker, setting the global databaseFactory behind kIsWeb, database names and IndexedDB persistence, shared worker vs basic worker, importing a database with writeDatabaseBytes, limitations and troubleshooting (missing worker file, port-bound storage, deleteDatabase).

tekartik Updated

File contents

tekartik/sqflite/tree/main/packages_web/sqflite_common_ffi_web/skills/sqflite-common-ffi-web-setup commit 7da4530613

Frequently asked questions

npx skillmds@latest add tekartik/sqflite-common-ffi-web-setup