Skip to content

Improvements for indexed-db - #79

Open
krestenkrab wants to merge 3 commits into
brianleroux:masterfrom
krestenkrab:master
Open

Improvements for indexed-db#79
krestenkrab wants to merge 3 commits into
brianleroux:masterfrom
krestenkrab:master

Conversation

@krestenkrab

Copy link
Copy Markdown
Contributor

This pull request does a couple of things for indexed-db

  1. Add optional 2nd argument done_callback to each
  2. Allow an adapter to implement async_each, which lets the adapter implement the each logic without having to extract the list of keys first, and then iterate through them.
  3. Implement the async_each for the indexed-db adapter
  4. Provide READ_ONLY, READ_WRITE and VERSION_CHANGE as inline-constants in the indexed-db adapter, to avoid dependency on the global webkitIDBTransaction (which sounds very webkit dependent)

The closure compiler trips on these as method
names, so we simply use array-index syntax to
access these properties.
@brianleroux

Copy link
Copy Markdown
Owner

ok, sorry I'm only getting to this now, I like it. I like it a lot. I think I might pull this into a branch and factor it in mainline --- stay tuned

@paulirish

Copy link
Copy Markdown
Contributor

Related to the #51 and #68 tickets on browser compat.

@cscott

cscott commented May 1, 2012

Copy link
Copy Markdown
Contributor

I fixed the webkit issue in a better way in #102 . I didn't tackle krestenkrab's API refactoring, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants