idb_shim 0.1.0 copy "idb_shim: ^0.1.0" to clipboard
idb_shim: ^0.1.0 copied to clipboard

outdatedDart 1 only

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.

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)

Author #

36
likes
0
points
61.2k
downloads

Publisher

verified publishertekartik.com

Weekly Downloads

indexed_db dart polyfill over native, websql or memory implementation

Homepage

License

unknown (license)

More

Packages that depend on idb_shim