dlt.destinations.impl.destination.factory
destination Objects
class destination(Destination[CustomDestinationClientConfiguration,
"DestinationClient"])
spec
@property
def spec() -> Type[CustomDestinationClientConfiguration]
A spec of destination configuration resolved from the sink function signature
__init__
def __init__(destination_callable: Union[TDestinationCallable, str] = None,
destination_name: str = None,
environment: str = None,
loader_file_format: TLoaderFileFormat = None,
batch_size: int = 10,
naming_convention: str = "direct",
spec: Type[CustomDestinationClientConfiguration] = None,
**kwargs: Any) -> None
Configure the destination to use in a pipeline.
The dlt.destination decorator wraps this and should preferably be used.
All arguments provided here supersede other configuration sources such as environment variables and dlt config files.
Arguments:
destination_callable
Union[TDestinationCallable, str], optional - The destination callable to use.destination_name
str, optional - Name of the destination, can be used in config section to differentiate between multiple of the same typeenvironment
str, optional - Environment of the destinationloader_file_format
TLoaderFileFormat, optional - The file format to use for the loaderbatch_size
int, optional - The batch size to use for the loadernaming_convention
str, optional - The naming convention to use for the loaderspec
Type[CustomDestinationClientConfiguration], optional - The spec to use for the destination**kwargs
Any - Additional arguments passed to the destination config