teardown_databases
Destroy all the non-mirror databases.
def teardown_databases(
old_config: list,
verbosity: int,
parallel: int = 0,
keepdb: boolean = False
) - > null
Destroy all the non-mirror databases.
Parameters
| Name | Type | Description |
|---|---|---|
| old_config | list | A collection of database connection objects, their original names, and a boolean flag indicating if the database should be destroyed. |
| verbosity | int | An integer controlling the level of logging output during the destruction process. |
| parallel | int = 0 | The number of parallel test database clones to destroy, typically used in multi-process testing environments. |
| keepdb | boolean = False | A flag that, if true, preserves the database structure while skipping the actual deletion of the database files or schema. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function performs database destruction as a side effect. |