data.loadconfig
LoadConfig Objects
@dataclass
class LoadConfig(DataClassFromDictMixin)
Configuration class for managing data load settings.
This class encapsulates the configuration settings for managing data load operations, enabling fine-grained control over various aspects such as load type, error handling, logging, and destination specifications. It is designed to adapt and configure data loading workflows seamlessly based on user-defined settings.
Attributes:
_layerstr - Operational layer associated with the configuration. Defaults to "not set".dry_runbool - Indicates if the process should be executed in dry-run mode. Defaults to True.auto_null_columnbool - Determines if null values should be automatically managed for columns. Defaults to True.load_typeLoadType - Specifies the type of load operation. Defaults to LoadType.FULL.stop_at_errorbool - Specifies whether the process should stop when an error occurs. Defaults to True.business_key_checkbool - Indicates if business keys should be validated during the load. Defaults to True.log_row_countbool - Determines if row counts should be logged during the process. Defaults to False.key_violation_actionstr - Action to be taken when key violations occur. Defaults to "raise".destination_schemastr - Schema of the destination table. Defaults to "dbo".destination_tableOptional[str] - Name of the destination table. Defaults to None.dry_run0 Optional[str] - Specifies the model object name used in operations. Defaults to None.dry_run1 Optional[str] - The query for handling delete scenarios during merge operations. Defaults to None.