-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Is it possible to modify data during importing/exporting? #1848
Comments
Sure, So, how to |
I briefly created a PR for a proposal to add transform to export and import. Should add a unit test also. Change suggestions and additional changes welcome. A unit test is still missing for it. |
Great! Thank you for a so quick response:) |
[email protected] released recently with the transform option. |
When importing/exporting data with the
dexie-export-import
(https://dexie.org/docs/ExportImport/dexie-export-import), it is possible to filter unwanted data. But, can we modify/change data yet?A typical scenario (at least to us only) is to change the primary/foreign keys of the data. So when importing into an existed db, conflicts can be avoided.
It would also be appreciated if the filtering & modification can be fulfuled within one callback. For example, current
filter()
callback could be upgraded to support a similar behavior to theCollection.modify()
, so the in-param ofvalue
could be modified then.The text was updated successfully, but these errors were encountered: