Skip to content

There is no documentation about the usage of QueryBuilder. #2

Open

Description

@thvd
No description provided.

Activity

  1. webcss commented on May 30, 2013

    @webcss
    Owner

    QueryBuilder is intended to create an IDBKeyRange object. Simply call e.g.
    var keyrange = queryBuilder.$gt(20).compile;
    and use it in e.g. indexedDB.each(keyrange)

  2. marlonpp commented on Feb 19, 2014

    @marlonpp

    Can I use more than one index to construct a query?
    var myQuery = $indexedDB.queryBuilder.$index('age_idx').$gt(40).$asc.$index('name_idx').$eq("test").compile;

    Something like that.

  3. webcss commented on Mar 4, 2014

    @webcss
    Owner

    No, you can only use one index per query, this is a limitation of indexedDB. As a workaround you can use your first index to limit a query, then open a cursor and test for secondary values to narrow your resultset.

  4. reopened this on Mar 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions