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

Preload memory database content #116

Open
sielay opened this issue Jan 9, 2023 · 0 comments
Open

Preload memory database content #116

sielay opened this issue Jan 9, 2023 · 0 comments
Labels
type: feature Request for a new feature or enhancement.

Comments

@sielay
Copy link

sielay commented Jan 9, 2023

context

I build an app using this library with sql.js and memory storage. I'd like to persist data in the local storage.

I found that sql.js support that officially - wiki and developer workaround by monkey patching your code in my project - code

proposed solution

Add native support by adding optional option to the config that allows to set localStorage dumps and read from them on init. In the perfect scenario it would be hooked to your update/insert methods to trigger saves to localStorage only after query execution.

alternatives

Monkey patching as I do

@sielay sielay added the type: feature Request for a new feature or enhancement. label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Request for a new feature or enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant