PyMigrationHookBuilder
class PyMigrationHookBuilder(migration_hook_builder)
Bases: object
Default IMigrationHookBuilder implementation.
- Parameters: migration_hook_builder (IMigrationHookBuilder)
__init__(migration_hook_builder)
Default init.
Args: : migration_hook_builder: An object that contains the hooks to execute at various points during the migration, determined by hook type.
Returns: None.
- Parameters: migration_hook_builder (IMigrationHookBuilder)
- Return type: None
Methods
__init__ (migration_hook_builder) |
Default init. |
---|---|
add (input_0[, input_1]) |
Adds an object or function to execute hooks. |
build () |
Builds an immutable collection from the currently added hooks. |
clear () |
Removes all currently registered hooks. |
add(input_0, input_1=None)
Adds an object or function to execute hooks.
Args:
: input_0: Either:
: 1. The hook type to execute, or
2. The hook context type for a callback function
input_1: Either:
: 1. The callback function to execute, or
2. None
Returns: : The same mapping builder object for fluent API calls.
- Parameters:
- input_0 (type)
- input_1 (Callable | None)
- Return type: Self
build()
Builds an immutable collection from the currently added hooks.
Returns: : The created collection.
- Return type: PyMigrationHookFactoryCollection
clear()
Removes all currently registered hooks.
Returns: : The same hook builder object for fluent API calls.
- Return type: Self