dlt.destinations.impl.clickhouse.factory
ClickHouseTypeMapper Objects
class ClickHouseTypeMapper(TypeMapperImpl)
to_db_integer_type
def to_db_integer_type(column: TColumnSchema,
table: PreparedTableSchema = None) -> str
Map integer precision to the appropriate ClickHouse integer type.
clickhouse Objects
class clickhouse(Destination[ClickHouseClientConfiguration,
"ClickHouseClient"])
__init__
def __init__(credentials: Union[ClickHouseCredentials, str, Dict[str, Any],
Type[Connection]] = None,
destination_name: str = None,
environment: str = None,
**kwargs: Any) -> None
Configure the ClickHouse destination to use in a pipeline.
All arguments provided here supersede other configuration sources such as environment variables and dlt config files.
Arguments:
credentials
Union[ClickHouseCredentials, str, Dict[str, Any], Type[Connection]], optional - Credentials to connect to the clickhouse database. Can be an instance ofClickHouseCredentials
or a connection string in the formatclickhouse://user:password@host:port/database
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 destination**kwargs
Any - Additional arguments passed to the destination config