Skip to main content

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

NameTypeDescription
old_configlistA collection of database connection objects, their original names, and a boolean flag indicating if the database should be destroyed.
verbosityintAn integer controlling the level of logging output during the destruction process.
parallelint = 0The number of parallel test database clones to destroy, typically used in multi-process testing environments.
keepdbboolean = FalseA flag that, if true, preserves the database structure while skipping the actual deletion of the database files or schema.

Returns

TypeDescription
nullNothing is returned; the function performs database destruction as a side effect.