Good day to all!
I have encountered a seemingly simple problem - saving a TinyDB backup and restoring it after reinstalling the application or deleting its data. It seems that I have already gone through the circle of different extensions several times: ETinyDB, MFile, TinyDBx...
Please - tell me how I can implement the ability to periodically save a TinyDB backup to a file and then restore it after reinstalling the application.
TinyDB has a block that can dump its contents into a dictionary.
Dropping a dictionary into a sharing component text stream block can feed the contents cross platform to your email or text editor apps as a JSON text string.
Coming back, the AI2 textbox should be able to accept an Android paste of a text copy done from the email client or wherever you saved the JSON text string.
The web component has a block that can decode the JSON text into a dictionary.
There is a for each key and value loop block that can traverse the dictionary.
Loop through the dictionary and reload TinyDB from the dictionary, using the keys as tags, value for value.