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

A refresh API? #67

Closed
tosone opened this issue Sep 22, 2015 · 4 comments
Closed

A refresh API? #67

tosone opened this issue Sep 22, 2015 · 4 comments

Comments

@tosone
Copy link

tosone commented Sep 22, 2015

i find another application changed the db, but anything has changed in this application, because all data is in the memory. I think refresh API is nessary.

@typicode
Copy link
Owner

Hi @tosone,

Can you provide some code example of what you need or the problem?

@typicode
Copy link
Owner

typicode commented Jan 7, 2016

There's now a db.read() method. Thank you for the suggestion 👍

@anthlasserre
Copy link

anthlasserre commented Jun 20, 2018

@typicode Can you join an use example of db.read() ?
I don't really understand how it works, I just want to refresh all my database state after a db.get('test').push(data).write()

@HeCorr
Copy link

HeCorr commented Mar 23, 2021

well, I'm a few years late but this is how to use it, in case anyone finds this: db.read().get('whatever').push(data).write()

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

4 participants