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

Persistent does not respect options.start, options.end #40

Closed
kitsonk opened this issue Oct 15, 2012 · 0 comments
Closed

Persistent does not respect options.start, options.end #40

kitsonk opened this issue Oct 15, 2012 · 0 comments

Comments

@kitsonk
Copy link
Contributor

kitsonk commented Oct 15, 2012

Persistent does not respect the query options as implied in the documentation when it comes to setting options.start and options.end. This likely affects Memory and ReadOnly as well. The following code does not respect the query options as expected. It will instead return all items, instead of only the second item:

var store = require("perstore/stores").DefaultStore({
  path: "data",
  filename: "example.json"
});

var results = store.query("", {
  start: 1,
  end: 1
});

console.log(results.length);

The equivalent rql does appear to function:

var results = store.query("limit(1,1)", {});
@kitsonk kitsonk closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2024
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

No branches or pull requests

1 participant