Skip to content

Preload memory database content #116

Description

@sielay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureRequest for a new feature or enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions