Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
vavrusa Merge pull request #38 from artbeglaryan/master
Added support for Decimal fields
Latest commit fc46142 Jan 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CHANGELOG
LICENSE.txt Initial Commit Dec 14, 2016
README.rst Initial Commit Dec 14, 2016
__init__.py Initial Commit Dec 14, 2016
base.py Enables arguments for count (e.g. distinct) Sep 4, 2018
connector.py Merge pull request #38 from artbeglaryan/master Jan 23, 2019
example.py
setup.py

README.rst

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')

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")
You can’t perform that action at this time.