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_callableUnion[TDestinationCallable, str], optional - The destination callable to use.
- destination_namestr, optional - Name of the destination, can be used in config section to differentiate between multiple of the same type
- environmentstr, optional - Environment of the destination
- loader_file_formatTLoaderFileFormat, optional - The file format to use for the loader
- batch_sizeint, optional - The batch size to use for the loader
- naming_conventionstr, optional - The naming convention to use for the loader
- specType[CustomDestinationClientConfiguration], optional - The spec to use for the destination
- **kwargsAny - Additional arguments passed to the destination config