effect-io-ai

Package: @effect/sql-clickhouse
Module: ClickhouseClient

ClickhouseClient.make

Creates a scoped ClickhouseClient, verifies connectivity with SELECT 1, closes the underlying client when the scope ends, maps ClickHouse failures to SqlError, and aborts plus kills in-flight queries when interrupted.

Signature

declare const make: (options: ClickhouseClientConfig) => Effect.Effect<ClickhouseClient, SqlError, Scope.Scope | Reactivity.Reactivity>

Source

Since v4.0.0