Skip to main content

An experimental wrapper around aiochclient to use it with SQLAlchemy

Project description

An experimental wrapper around aiochclient to use it with SQLAlchemy

Example

import aiochsa
import sqlalchemy as sa

table = sa.Table(
    sa.Column('id', sa.Integer),
    sa.Column('name', sa.String),
)

async with aiochsa.connect('clickhouse://127.0.0.1:8123') as conn:
    await conn.execute(
        table.insert(),
        [
            {'id': 1, 'name': 'Alice'},
            {'id': 2, 'name': 'Bob'},
        ],
    )
    rows = await conn.fetch(
        table.select()
    )

Change log

See CHANGELOG.

Project details


Download files

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

Source Distribution

aiochsa-0.2.tar.gz (10.5 kB view details)

Uploaded Source

File details

Details for the file aiochsa-0.2.tar.gz.

File metadata

  • Download URL: aiochsa-0.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for aiochsa-0.2.tar.gz
Algorithm Hash digest
SHA256 8e6a3401b4bac02ef9c61e5dd3c058227b2102e9ec46a30715b5dff25b8223b1
MD5 adb6a858641c5a3723e0491ed7b3da7e
BLAKE2b-256 c42534df3ddfd5e09427f05de26bec60f8ceba33220e075fc12d40a59da82104

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page