idb_shim 0.1.0 idb_shim: ^0.1.0 copied to clipboard
indexed_db dart polyfill over native, websql or memory implementation
idb shim #
Pure dart indexed db like API on top of native, websql or memory implementation. Its goal is to support browser such as Safari and any browser on iOS (that do not support the indexed_db api) with very few changes.
- Project home page
- Project source code
- Samples (code and live demo)
Usage #
Assume you have the existing:
import 'dart:indexed_db';
window.indexedDB.open(dbName, version: xxx, onUpgradeNeeded: yyy);
This can be replaced by:
import 'package:idb_shim/idb_browser.dart'
IdbFactory idbFactory = getIdbFactory();
idbFactory.open(dbName, version: xxx, onUpgradeNeeded: yyy);
All other existing code remains unchanged (well at least that it is the goal)