Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for indexed-db #79

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

krestenkrab
Copy link
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
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
Contributor

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

@cscott
Copy link
Contributor

cscott commented May 1, 2012

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