sqlalchemy-clickhouse

  • Owner: cloudflare/sqlalchemy-clickhouse
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownercloudflare/sqlalchemy-clickhouse
Primary LanguagePython
Program languagePython (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2016-12-13 22:41:38
Pushed At2024-09-25 05:04:50
Last Commit At2024-09-19 21:52:17
Release Count6
Last Release Namev0.1.5 (Posted on )
First Release Namev0.1 (Posted on )
用户参与
Stargazers Count322
Watchers Count18
Fork Count104
Commits Count54
Has Issues Enabled
Issues Count50
Issue Open Count37
Pull Requests Count19
Pull Requests Open Count10
Pull Requests Close Count5
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private