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()
)
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(3.6 kB
view details)
File details
Details for the file aiochsa-0.1.tar.gz
.
File metadata
- Download URL: aiochsa-0.1.tar.gz
- Upload date:
- Size: 3.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcaaf31791ff72d96a9affb6b7de866bfe7a8e201e643d8ef4dbf182872d6020 |
|
MD5 | a5eb36042a7926984f414e17be2503f4 |
|
BLAKE2b-256 | 169623dca811b54d4d435b5ea0c8f71ad281cd3a1ae1c31137de3da3622195ab |