httk.store.backend.clickhouse.engine¶
ClickHouse database construction for Backend.
Functions¶
|
Build a ClickHouse-backed backend from a |
Module Contents¶
- httk.store.backend.clickhouse.engine.database(cls, url, *, database=None)¶
Build a ClickHouse-backed backend from a
clickhousedb://URL.The URL uses the SQLAlchemy
clickhouse-connectdialect, for exampleclickhousedb://default:@host:8123/my_database.databasereplaces the URL path when supplied. The constructor always mergesjoin_use_nulls=1into the URL query and selects thebulk-fencedstorage profile before anySqlStoreinitialization occurs.- Parameters:
- Returns:
Connected ClickHouse backend wrapper using the bulk-fenced profile.
- Raises:
ImportError – If
clickhouse-connectis not installed; install thehttk-store[clickhouse]extra.RuntimeError – If Keeper is unavailable, the server is too old, or
join_use_nullscannot be enforced.
- Return type: