varx/tech on Nostr: Anyone know of a library for upgrading an app's data storage in a safe way from one ...
Anyone know of a library for upgrading an app's data storage in a safe way from one version to the next?
My desktop app has various databases and flat files, and sometimes I need to change the schema or layout or file formats. But I want to do it safely—if the upgrade fails partway through, I want to be able to reset to a known-good state, and not leave the user's data in an unusable halfway-upgraded state.
Published at
2023-08-05 12:56:36Event JSON
{
"id": "3d2dbc29b4ce316ac013c3bbb913933407c17e9932f09e869ca796f01ce5d8aa",
"pubkey": "8e3ac11e1cfbd1959ffff89d016fd2a6c159c4880cf4fe0274ac3852e21f2b88",
"created_at": 1691240196,
"kind": 1,
"tags": [
[
"proxy",
"https://infosec.exchange/users/varx/statuses/110837117531319034",
"activitypub"
]
],
"content": "Anyone know of a library for upgrading an app's data storage in a safe way from one version to the next?\n\nMy desktop app has various databases and flat files, and sometimes I need to change the schema or layout or file formats. But I want to do it safely—if the upgrade fails partway through, I want to be able to reset to a known-good state, and not leave the user's data in an unusable halfway-upgraded state.",
"sig": "5ba513713203b738a147fbfb151699a2365a7a68a2bf21c7bdb6f6761cdf87af887ac9d1170c0ae21855d622569f92dedbefc3bb156c2dd15bb757308a3eec2f"
}