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

Add request to the upgradeCallback function #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 8, 2017

  1. Add request to upgradeCallback fnc

    Hi, I would to add request to the callback as parameter because I need to add some new fields comming in the new db version.
    If I have request in the callback I can easy access to the objectStore like 
    
    let users = request.transaction.objectStore('users');
         users.createIndex("active", "active", { unique: false });
    
    Now is really hard to do this because only request can use standard function of IndexedDb and I like this approach to have open database closed in the one lib function.
    If you have better approach how to resolve my problem, I would be happy and teached. Thank you.
    daremachine authored Jan 8, 2017
    Configuration menu
    Copy the full SHA
    e84d439 View commit details
    Browse the repository at this point in the history