dlt.destinations.impl.clickhouse.factory
ClickHouseTypeMapper Objects
class ClickHouseTypeMapper(TypeMapperImpl)
to_db_datetime_type
def to_db_datetime_type(column: TColumnSchema,
                        table: PreparedTableSchema = None) -> str
Map timestamp type to appropriate ClickHouse datetime type with or without timezone.
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:
- credentialsUnion[ClickHouseCredentials, str, Dict[str, Any], Type[Connection]], optional - Credentials to connect to the clickhouse database. Can be an instance of- ClickHouseCredentialsor a connection string in the format- clickhouse://user:password@host:port/database
- 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
- **kwargsAny - Additional arguments passed to the destination config