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

falshStore.value() cannot work as expect #4

Open
lijiarui opened this issue Oct 14, 2017 · 1 comment
Open

falshStore.value() cannot work as expect #4

lijiarui opened this issue Oct 14, 2017 · 1 comment
Labels

Comments

@lijiarui
Copy link
Contributor

lijiarui commented Oct 14, 2017

in flashStore.values, {lte: 10} result is 3, while {gte: 10} result is 5

snip as follows:

import { FlashStore } from '../src/flash-store'
async function main() {
  const flashStore = new FlashStore('falshstore.workdir')

  console.log('all values')
  for await (const value of flashStore.values()) {
    console.log(value)
  }

  console.log('value gte 10')
  for await (const value of flashStore.values({gte: 10})) {
    console.log(value)
  }

  console.log('value lte 10')
  for await (const value of flashStore.values({lte: 10})) {
    console.log(value)
  }

}
main()

output as follows:

all values
3
5
value gte 10
5
value lte 10
3
@huan huan added the bug label Feb 7, 2020
huan added a commit that referenced this issue Feb 7, 2020
@huan
Copy link
Owner

huan commented Feb 7, 2020

Confirmed, and added to known issues.

It seems that we are not passing the right parameters to the leveldown abstract API (to be confirmed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants