dpmcore.services.database_update
Safely replace an existing DPM database with fresh data. Data is loaded into a temporary staging area and validated before the active database is touched; if anything fails the original is left intact.
Note
Requires the migration extra: pip install dpmcore[migration].
DatabaseUpdateService
DatabaseUpdateResult
- class dpmcore.services.database_update.DatabaseUpdateResult(target_type, target, source, used_access_file, migration_result, ecb_validations_imported, dry_run=False, staging_location=None)[source]
Result of a safe database update.
- Parameters:
-
migration_result:
MigrationResult