Databend Driver Python Binding
Project description
databend-driver
Build
cd bindings/python
maturin develop
Usage
import asyncio
from databend_driver import AsyncDatabendClient
async def main():
client = AsyncDatabendClient('databend+http://root:root@localhost:8000/?sslmode=disable')
conn = await client.get_conn()
await conn.exec(
"""
CREATE TABLE test (
i64 Int64,
u64 UInt64,
f64 Float64,
s String,
s2 String,
d Date,
t DateTime
)
"""
)
rows = await conn.query_iter("SELECT * FROM test")
async for row in rows:
print(row.values())
asyncio.run(main())
Development
pipenv install --dev
maturin develop
pipenv run behave tests
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for databend_driver-0.9.5-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef052f004288bda2bfe805656ac34f0e99f8dd78b09e2a98a5536053ae82280 |
|
MD5 | 9aaf1450df0a407412d9c8431262a3fe |
|
BLAKE2b-256 | b7e3195c2e775c9ea50822c2431f0a00f48ae03a7a10be4d3e583cce489052ee |
Close
Hashes for databend_driver-0.9.5-cp37-abi3-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8abbbfdb935e502ffb7dc7c7ef75dfbc65e88d532a2e02a48e36509b375ba1a4 |
|
MD5 | dd6b9d5969b6cb0f83b97ffdf4972894 |
|
BLAKE2b-256 | 128d88e5447409a7196cf1600ecd5abd1dad8a3f9fdb7f29d155d3217282b6df |
Close
Hashes for databend_driver-0.9.5-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ab79393d0a1a432d4bd5b11747d69cc40097044f9f7bc6784bb249c306518b |
|
MD5 | 29447b78fb595bd61567960c153f43f1 |
|
BLAKE2b-256 | b0f6172fbc54fc75233b23976a3a094b60ec23bcf295b030b12ec975f394fc5c |
Close
Hashes for databend_driver-0.9.5-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edc970a63bc3d2e84969950847900130726978d5f475319a1e2a8f4d6091abcb |
|
MD5 | a894ae693437619a98699f3b935013c1 |
|
BLAKE2b-256 | a34f4f99e8180852e5539f354fbfe28a3106e68a3fb4ea0c60fc0e2d92682a47 |
Close
Hashes for databend_driver-0.9.5-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb701719179cc330ed19521934bcb7b6b1a90c9d0d848476b030b5997adf111 |
|
MD5 | 1254c607ee756d081d10027eea6b1528 |
|
BLAKE2b-256 | 3f081344179de3d4ca7a080d9f0d65b5be97c44ba63e3543a2d8ab9a44b53638 |