Import Dexie Database with Quasar/Electron #13865
Unanswered
CynthiaBlue
asked this question in
CLI - Electron mode
Replies: 1 comment
-
update your quasar version ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to be able to export and import my Dexie ( indexedDB) datase to/from my Quasar Electron app. I need this in case my users' application crashes and they need to restore.
Following the Dexie docs, I've been able to export the whole database to a JSON file, which works great.
I'm trying to import it back, but I'm pretty stuck with this step.
The Dexie docs give a codepen example:
https://codepen.io/dfahlander/pen/RqwoaB/
Which is great, but it doesn't help me with using Quasar. It uses a dropzone, and I see that Quasar does have a q-uploader component, but I'm not sure how to convert the dropzone in the above example to the equivalent of the Quasar q-uploader.
So my questions include, but are not limited to:
Should I use the q-uploader for this purpose?
When I try a basic q-uploader (and I know I'm not using it right), like this:
I get the following errors:
But I don't see, on the Quasar q-uploder component page, much information on the events "uploading" and "failed". Where do I find more information about these?
Or do I need to even address those since I'm going to import the contents of the JSON file directly into Dexie? It's not like I'm saving a file onto a server or anything.
I'd appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions