Skip to content

Instantly share code, notes, and snippets.

View toots's full-sized avatar

Romain Beauxis toots

View GitHub Profile
@toots
toots / gist:5136523
Created March 11, 2013 18:39
IndexedDb export function.
exportDb = (name, cb) ->
handler = indexedDB.open(name)
handler.onsuccess = (sender) ->
db = sender.target.result
stores = db.objectStoreNames
results = {}
transaction = db.transaction stores, "readonly"