ClickHouse (Effect's @effect/sql-clickhouse): an SqlClient over
ClickHouse's HTTP interface, sent with a pyfect HttpClient (by default
one on httpx, the pyfect-dev[httpx] extra)::
from pyfect.sql import clickhouse
layer = clickhouse.layer(clickhouse.ClickhouseClientConfig(url="http://localhost:8123"))client:ClickhouseClient(anSqlClientwithparam,as_command,insert_query,with_query_id,with_clickhouse_settings, itsconfigandclient),make,layer,layer_config,layer_from,make_compiler, and theClientMethod/QueryId/ClickhouseSettingsreferencesconfig:ClickhouseClientConfigoptions: the@clickhouse/clientoptions it takes (compression,keep_alive,tls,log,json)driver:ClickhouseDriver, the HTTP client underneath (query,command,exec,insert,ping) and its resultsparams: how values are sent (TupleParam, settings, inferred types)error:ClickhouseErrorand theSqlErrorreasons of its codesmigrator: migrations
Re-exports#
- From
pyfect.sql.clickhouse.client:ClickhouseClient,ClickhouseClientService,ClickhouseParam,layer,layer_config,layer_from,make,make_compiler - From
pyfect.sql.clickhouse.config:ClickhouseClientConfig - From
pyfect.sql.clickhouse.driver:ClickhouseDriver,CommandResult,InsertResult,ResultSet - From
pyfect.sql.clickhouse.error:ClickhouseError - From
pyfect.sql.clickhouse.params:Setting,Settings,TupleParam