routes.database_admin

Administrative database routes (backup/export/import).

Functions

post_database_backup(handler, *, backup_database)

Create a backup copy of the SQLite database.

post_database_export(handler, *, export_database)

Export the SQLite database to a file path.

post_database_import(handler, *, restore_database)

Restore the SQLite database from a file path.

post_database_delete_package(handler, *, ...[, ...])

Delete one imported package and its associated tables.

Module Contents

routes.database_admin.post_database_backup(handler, *, backup_database)

Create a backup copy of the SQLite database.

routes.database_admin.post_database_export(handler, *, export_database)

Export the SQLite database to a file path.

routes.database_admin.post_database_import(handler, *, restore_database)

Restore the SQLite database from a file path.

routes.database_admin.post_database_delete_package(handler, *, connect_database, initialize_schema, delete_package, on_delete_success=None)

Delete one imported package and its associated tables.