A Node.js ORM for ClickHouse that uses the HTTP interface and wraps the TimonKK/clickhouse driver. Version 3.0.2 offers schema-based model definitions, automatic table creation/synchronization, and typed queries with TypeScript support. It differentiates from raw SQL clients by providing a declarative model configuration, built-in data type mapping, and simplified CRUD operations. Release cadence is irregular; the library is maintained but with limited community activity.
npm install clickhouse-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize ClickHouse ORM, define a model with schema, auto-create table, and insert a row.
Use dynamic import or destructured require: const { ClickhouseOrm } = require('clickhouse-orm');Remove autoSync from schema config.
Explicitly quote table names in options if needed.
Always provide defaults or validate before calling create.
Run 'npm install clickhouse-orm' and use destructured import: const { ClickhouseOrm } = require('clickhouse-orm');Ensure db.name is provided and client config is valid.
Verify ClickHouse is running on localhost:8123 and start if needed: 'sudo systemctl start clickhouse-server'.