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

Feature for Queryresult, to return primary key #97

Open
tjunussov opened this issue Feb 19, 2016 · 1 comment
Open

Feature for Queryresult, to return primary key #97

tjunussov opened this issue Feb 19, 2016 · 1 comment

Comments

@tjunussov
Copy link

It would be nice to have second parameter as array of Primary keys

var df = db.values('sales');
  df.done(function (items) {
    console.log(items);
  });

to smth

var df = db.values('sales');
  df.done(function (items,pks) {
    console.log(items);
        console.log(pks); // Echo primary keys
  });
@yathit
Copy link
Owner

yathit commented Feb 19, 2016

It is not possible with Promise. You have to use db.open or db.scan to get both value and key.

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

2 participants