Skip to main content

ClickHouse SQLAlchemy Dialect for Schatz Platform

Project description

schatz-sqlalchemy-clickhouse
=====================

ClickHouse dialect for SQLAlchemy used on Schatz Platform.

Installation
------------

The package is installable through PIP::

pip install schatz-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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
schatz-sqlalchemy-clickhouse-0.0.2.post3.tar.gz (12.5 kB) Copy SHA256 hash SHA256 Source None Jul 15, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page