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

Unique DB with multiple stores #72

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

Commits on Mar 26, 2016

  1. Adding return to iterate.onItem to increment "recordCount" only if it…

    … returns "undefined" (keep compatibility) or "true".
    
    Because IndexedDB is limited on filtering, I had to use iterate and manually check each item with custom filters.
    But I still need to limit the quantity of records returned, so I don't iterate the whole store, I know that there is the param "limit" the problem is that IDBWrapper doesn't know how many records passed my filter.
    To solve this, I changed the "onItem" function to return a boolean and increment "recordCount" only if it returns "undefined" (keep compatibility) or "true".
    andrehil committed Mar 26, 2016
    Configuration menu
    Copy the full SHA
    4b3d7a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2016

  1. Configuration menu
    Copy the full SHA
    c1fb103 View commit details
    Browse the repository at this point in the history
  2. Refactor to receive the param "dbName" instead of "storePrefix" and a…

    …n array of stores.
    
    Creation of a class called "Store" which contains the specific attributes of a store.
    Main class changed to receive the param dbName and an array of store params to create each store inside the DB.
    With these changes the user is able to create one DB with multiple stores.
    Tests changed to comply with the new behavior.
    andrehil committed Mar 27, 2016
    Configuration menu
    Copy the full SHA
    916fe9c View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2016

  1. Fixing var scope bug.

    andrehil committed Apr 10, 2016
    Configuration menu
    Copy the full SHA
    ab0fc12 View commit details
    Browse the repository at this point in the history