ClickHouse SQL dialect implementation for JavaScript/TypeScript that provides a query builder interface for constructing ClickHouse SQL queries programmatically. Current stable version is 1.2.4. Developed by mbIkola, this package offers an alternative to raw query composition with method chaining and built-in functions specific to ClickHouse (e.g., toStartOfMinute, uniq, sum, divide). It is primarily used in Node.js environments. As a small utility library, it has a limited maintenance scope but covers essential ClickHouse SQL features. The package is ESM-only and requires the latest Node versions.
npm install clickhouse-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Constructs a simple SELECT COUNT query with GROUP BY and ORDER BY using method chaining.
Update import to use named exports: import { Dialect } from 'clickhouse-sql'Use import syntax or configure your project for ESM. For older Node versions, you may need to use dynamic import: const Dialect = await import('clickhouse-sql');Replace someMethod with newMethod in your queries.
Use import Dialect from 'clickhouse-sql' instead of require.
No dependency data recorded yet.