# sqlalchemy-clickhouse **Repository Path**: mirrors_cloudflare/sqlalchemy-clickhouse ## Basic Information - **Project Name**: sqlalchemy-clickhouse - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README sqlalchemy-clickhouse ===================== ClickHouse dialect for SQLAlchemy. Installation ------------ The package is installable through PIP:: pip install sqlalchemy-clickhouse Usage ----- The DSN format is similar to that of regular Postgres:: >>> import sqlalchemy as sa >>> sa.create_engine('clickhouse://username:password@hostname:port/database') Engine('clickhouse://username:password@hostname:port/database') For SSL add ssl parameter to URL:: >>> import sqlalchemy as sa >>> sa.create_engine('clickhouse://username:password@hostname:port/database?ssl=True') Engine('clickhouse://username:password@hostname:port/database') It implements a dialect, so there's no user-facing API. Testing ------- The dialect can be registered on runtime if you don't want to install it as:: from sqlalchemy.dialects import registry registry.register("clickhouse", "base", "dialect")