![]() Schema_source_path = Path('.'), # e.g., anvil.yaml # That usually means using the Server (not Client) credentials. # connect to your App with full table-access privileges. ![]() (And how do you keep logged-in users’ database activity from accidentally interfering with the ongoing Restore?)Īt least, with a backup, you can have something to restore, even if it’s not immediately clear how.įrom BackUpAnvilAppTables_work import do_backup Using Row IDs to tie it all together? Row IDs of deleted rows can’t be restored on insert, Anvil will generate brand-new ones. Restoring just the right data, safely, is likely to be very, very App-dependent. In that case, you might get mixed results. Users may very well be updating the database while a backup is running.Media objects are written to their own table.( py -m pip install pyyaml into your favorite Python virtual environment.) To read the YAML, it depends on pyyaml. ![]() So, at that point, this code will probably break. Anvil reserves the right to change the format of these files, and schemas, at any time. So you need to have a (reasonably) current backup of your App’s source code, for it to read. yaml files to get the database structure. If you do, please let me know how it went! If you have such columns, you’ll want to uncomment those lines (and test thoroughly!). (My tables don’t have any.) To avoid trouble, the (incomplete) code to handle that is commented out.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |