restore_database#

ADR.restore_database(input_file: str | Path, *, database: str = 'default') None#

Restore a database from a JSON (or JSON.gz) dump file.

Parameters:
input_filestr or Path

Path to the dump file.

databasestr, default: “default”

Django database alias to restore into.

Raises:
ADRException

If the target DB is not configured, the file does not exist, or the load command fails.