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

How to iterate the data #18

Open
kennylbj opened this issue Apr 16, 2022 · 2 comments
Open

How to iterate the data #18

kennylbj opened this issue Apr 16, 2022 · 2 comments

Comments

@kennylbj
Copy link

kennylbj commented Apr 16, 2022

I tried by following code but return error:

 for (const value of (this.keyvStore as any).iterator()) {
      console.log(value);
  }

ERROR : this.keyvStore.iterator is not a function or its return value is not iterable

Is that because the iterator function needs to be defined in keyv-file?

@SuiKaSan
Copy link

Hello, did you solve the problem?
I'm having the same situation.

@kennylbj
Copy link
Author

@SuiKaSan According to this document , the iterator function is needed to be defined in order to iterate over the dataset. It seems that the keyv-file did miss this part.

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