[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-clickhouse-clickhouse-js-node-coding":3,"mdc--4mp44b-key":40,"related-org-clickhouse-clickhouse-js-node-coding":1576,"related-repo-clickhouse-clickhouse-js-node-coding":1769},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":35,"sourceUrl":38,"mdContent":39},"clickhouse-js-node-coding","build Node.js applications with ClickHouse","Write idiomatic application code with the ClickHouse Node.js client (`@clickhouse\u002Fclient`). Use this skill whenever a user is *building* against the Node.js client — configuring the client, pinging, inserting rows in JSON or raw formats, selecting and parsing results, binding query parameters, managing sessions and temporary tables, working with data types or customizing JSON parsing. Do NOT use for browser\u002FWeb client code.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"clickhouse","ClickHouse","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fclickhouse.png",[12,14,17,20],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Backend","backend",{"name":18,"slug":19,"type":13},"Node.js","node-js",{"name":21,"slug":22,"type":13},"Database","database",321,"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js","2026-05-06T05:41:40.923776",null,62,[8,29,30,31,32,33,34],"http","https","javascript","nodejs","streaming","typescript",{"repoUrl":24,"stars":23,"forks":27,"topics":36,"description":37},[8,29,30,31,32,33,34],"Official JS client for ClickHouse DB","https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002FHEAD\u002Fskills\u002Fclickhouse-js-node-coding","---\nname: clickhouse-js-node-coding\ndescription: >\n  Write idiomatic application code with the ClickHouse Node.js client\n  (`@clickhouse\u002Fclient`). Use this skill whenever a user is *building* against\n  the Node.js client — configuring the client, pinging, inserting rows in JSON\n  or raw formats, selecting and parsing results, binding query parameters,\n  managing sessions and temporary tables, working with data types or\n  customizing JSON parsing. Do NOT use for browser\u002FWeb client code.\n---\n\n# ClickHouse Node.js Client — Coding\n\nReference: https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Fintegrations\u002Fjavascript\n\n> **⚠️ Node.js runtime only.** This skill covers the `@clickhouse\u002Fclient`\n> package running in a **Node.js runtime** exclusively — including **Next.js\n> Node runtime** API routes, React Server Components, Server Actions, and\n> standard Node.js processes. Do **not** apply this skill to browser client\n> components, Web Workers, **Next.js Edge runtime**, Cloudflare Workers, or\n> any usage of `@clickhouse\u002Fclient-web`. For browser\u002Fedge environments, the\n> correct package is `@clickhouse\u002Fclient-web`.\n\n---\n\n## How to Use This Skill\n\n1. **Match the user's intent** to a row in the Task Index below and read the\n   corresponding reference file before writing code. After reading it, scan any\n   **Answer checklist** in that reference and make sure the final answer covers\n   each relevant item; those checklists capture details users usually need but\n   are easy to omit in short answers.\n2. **Always import from `@clickhouse\u002Fclient`** (never `@clickhouse\u002Fclient-web`)\n   and create a client with `createClient({ url })` or rely on\n   supported defaults when appropriate. Close it with `await client.close()`\n   preferably when it's no longer needed or during graceful shutdown for global resources.\n3. **Prefer `JSONEachRow` for typical row inserts\u002Fselects** unless the user\n   has already chosen another format or is streaming raw bytes (CSV \u002F TSV \u002F\n   Parquet — see `examples\u002Fnode\u002Fperformance\u002F`).\n   **Note on `clickhouse_settings`:** settings passed to `createClient` are\n   defaults for every request; they can be overridden per-call by passing\n   `clickhouse_settings` directly to `insert()`, `query()`, or `command()`.\n   Always mention this when the user configures settings at the client level.\n4. **Always use `query_params` for user-supplied values** — never template-\n   literal-interpolate them into SQL. See `reference\u002Fquery-parameters.md`.\n   **When answering a parameter-binding question, your response must\n   explicitly name template-literal interpolation as a \"SQL injection\n   risk\"** — even when the user only asked about syntax and did not raise\n   security. The literal phrase \"SQL injection\" needs to appear; this is\n   the most common mistake from PostgreSQL\u002FMySQL users and the security\n   framing is part of the correct answer, not an optional aside.\n5. **Pick the right method for the job:**\n   - `client.insert()` — write rows.\n   - `client.query()` + `resultSet.json()` \u002F `.text()` \u002F `.stream()` — read\n     rows that return data.\n   - `client.command()` — DDL and other statements that don't return rows\n     (`CREATE`, `DROP`, `TRUNCATE`, `ALTER`, `SET` in a session, etc.).\n   - `client.exec()` — when you need the raw response stream of an arbitrary\n     statement (rare in coding scenarios).\n   - `client.ping()` — health check; returns `{ success, error? }`, never\n     throws on connection failure.\n6. **Note version constraints** when relevant. Examples:\n   - `pathname` config option: client `>= 1.0.0`.\n   - `BigInt` values in `query_params`: client `>= 1.15.0`.\n   - `TupleParam` and JS `Map` in `query_params`: client `>= 1.9.0`.\n   - Configurable `json.parse` \u002F `json.stringify`: client `>= 1.14.0`.\n   - `Time` \u002F `Time64` data types: ClickHouse server `>= 25.6`.\n   - `QBit` data type: ClickHouse server `>= 25.10` (GA on `26.x`).\n   - `Dynamic` \u002F `Variant` \u002F new `JSON` types: ClickHouse server `>= 24.1` \u002F\n     `24.5` \u002F `24.8` (no longer experimental since `25.3`).\n\n---\n\n## Task Index\n\nIdentify the user's task and read the matching reference file.\n\n| Task                                                     | Triggers \u002F symptoms                                                                                                                                                                                                             | Reference file                      |\n| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |\n| **Configure \u002F connect the client**                       | Building a `createClient` call, URL parameters, `clickhouse_settings`, default format, custom HTTP headers                                                                                                                      | `reference\u002Fclient-configuration.md` |\n| **Compress requests \u002F responses**                        | `compression`, gzip vs `zstd`, `{ codec }` option shape, Node version requirements, web limitations                                                                                                                             | `reference\u002Fcompression.md`          |\n| **Ping the server**                                      | Health checks, readiness probes, \"is ClickHouse up?\"                                                                                                                                                                            | `reference\u002Fping.md`                 |\n| **Choose an insert format**                              | \"Which format should I use to insert?\", JSON vs raw, `JSONEachRow` vs `JSON` vs `JSONObjectEachRow`                                                                                                                             | `reference\u002Finsert-formats.md`       |\n| **Insert into a subset of columns \u002F different database** | `insert({ columns })`, excluding columns, ephemeral columns, cross-DB inserts                                                                                                                                                   | `reference\u002Finsert-columns.md`       |\n| **Insert values, expressions, dates, decimals**          | `INSERT … VALUES` with SQL functions, `Date`\u002F`DateTime` from JS, `Decimal` precision, `INSERT … SELECT`; inserting a UUID into a `UInt128` column is tricky — use when the user is writing code that stores a UUID as `UInt128` | `reference\u002Finsert-values.md`        |\n| **Async inserts (server-side batching)**                 | `async_insert=1`, fire-and-forget vs wait-for-ack                                                                                                                                                                               | `reference\u002Fasync-insert.md`         |\n| **Select and parse results**                             | `JSONEachRow` reads, `JSON` with metadata, picking a select format                                                                                                                                                              | `reference\u002Fselect-formats.md`       |\n| **Parameterize queries**                                 | Binding values, special characters \u002F escaping, \"SQL injection?\", `{name: Type}` syntax                                                                                                                                          | `reference\u002Fquery-parameters.md`     |\n| **Sessions & temporary tables**                          | `session_id`, `CREATE TEMPORARY TABLE`, per-session `SET` commands                                                                                                                                                              | `reference\u002Fsessions.md`             |\n| **Modern data types**                                    | `Dynamic`, `Variant`, `JSON` (object), `Time`, `Time64`, `QBit` (vector search)                                                                                                                                                 | `reference\u002Fdata-types.md`           |\n| **Custom JSON parse\u002Fstringify**                          | Plug in `JSONBig` \u002F `safe-stable-stringify` \u002F a `BigInt`-aware serializer                                                                                                                                                       | `reference\u002Fcustom-json.md`          |\n\n---\n\n## Conventions used in answers\n\n- Always show `import { createClient } from '@clickhouse\u002Fclient'` (Node, never\n  Web).\n- Always `await client.close()` at the end of self-contained snippets; in\n  long-running services, close on graceful shutdown.\n- For inserts, prefer `format: 'JSONEachRow'` and `values: [...]` unless the\n  user's scenario requires otherwise.\n- For selects, prefer `await (await client.query({...})).json\u003CRowType>()` for\n  small \u002F medium result sets; for bigger results suggest streaming.\n- When showing parameter binding, use ClickHouse's native `{name: Type}`\n  syntax — never `$1`, `?`, or `:name`.\n- For DDL inside a cluster or behind a load balancer, set\n  `clickhouse_settings: { wait_end_of_query: 1 }` on the `command()` call so\n  the server only acknowledges after the change is applied. See\n  https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Fen\u002Finterfaces\u002Fhttp\u002F#response-buffering.\n\n---\n\n## Out of scope\n\nThis skill covers day-to-day coding against `@clickhouse\u002Fclient` (Node).\nThe following topics are intentionally **not** covered here:\n\n- **Errors, hangs, type mismatches, proxy pathname surprises, log silence,\n  socket hang-ups, `ECONNRESET`** → use the\n  `clickhouse-js-node-troubleshooting` skill.\n- **Streaming, Parquet, file streams, server-side bulk moves, progress\n  streaming, async-insert throughput tuning** — see\n  [`examples\u002Fnode\u002Fperformance\u002F`](https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fperformance).\n- **TLS, RBAC \u002F read-only users, deeper SQL-injection guidance** — see\n  [`examples\u002Fnode\u002Fsecurity\u002F`](https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fsecurity).\n- **`CREATE TABLE` patterns, deployment-shaped connection strings,\n  replication \u002F sharding choices** — see\n  [`examples\u002Fnode\u002Fschema-and-deployments\u002F`](https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fschema-and-deployments).\n- **Browser, Web Worker, Next.js Edge, Cloudflare Workers** — use\n  `@clickhouse\u002Fclient-web` and see\n  [`examples\u002Fweb\u002F`](https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fweb).\n\n---\n\n## Still Stuck?\n\n- [`examples\u002Fnode\u002Fcoding\u002F`](https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fcoding) — the runnable corpus this skill is built on.\n- [ClickHouse JS client docs](https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Fintegrations\u002Fjavascript)\n- [ClickHouse supported formats](https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Finterfaces\u002Fformats)\n- [ClickHouse data types](https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Fsql-reference\u002Fdata-types)\n",{"data":41,"body":42},{"name":4,"description":6},{"type":43,"children":44},"root",[45,54,68,135,139,146,675,678,684,689,1236,1239,1245,1367,1370,1376,1394,1519,1522,1528],{"type":46,"tag":47,"props":48,"children":50},"element","h1",{"id":49},"clickhouse-nodejs-client-coding",[51],{"type":52,"value":53},"text","ClickHouse Node.js Client — Coding",{"type":46,"tag":55,"props":56,"children":57},"p",{},[58,60],{"type":52,"value":59},"Reference: ",{"type":46,"tag":61,"props":62,"children":66},"a",{"href":63,"rel":64},"https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Fintegrations\u002Fjavascript",[65],"nofollow",[67],{"type":52,"value":63},{"type":46,"tag":69,"props":70,"children":71},"blockquote",{},[72],{"type":46,"tag":55,"props":73,"children":74},{},[75,81,83,90,92,97,99,104,106,111,113,118,120,126,128,133],{"type":46,"tag":76,"props":77,"children":78},"strong",{},[79],{"type":52,"value":80},"⚠️ Node.js runtime only.",{"type":52,"value":82}," This skill covers the ",{"type":46,"tag":84,"props":85,"children":87},"code",{"className":86},[],[88],{"type":52,"value":89},"@clickhouse\u002Fclient",{"type":52,"value":91},"\npackage running in a ",{"type":46,"tag":76,"props":93,"children":94},{},[95],{"type":52,"value":96},"Node.js runtime",{"type":52,"value":98}," exclusively — including ",{"type":46,"tag":76,"props":100,"children":101},{},[102],{"type":52,"value":103},"Next.js\nNode runtime",{"type":52,"value":105}," API routes, React Server Components, Server Actions, and\nstandard Node.js processes. Do ",{"type":46,"tag":76,"props":107,"children":108},{},[109],{"type":52,"value":110},"not",{"type":52,"value":112}," apply this skill to browser client\ncomponents, Web Workers, ",{"type":46,"tag":76,"props":114,"children":115},{},[116],{"type":52,"value":117},"Next.js Edge runtime",{"type":52,"value":119},", Cloudflare Workers, or\nany usage of ",{"type":46,"tag":84,"props":121,"children":123},{"className":122},[],[124],{"type":52,"value":125},"@clickhouse\u002Fclient-web",{"type":52,"value":127},". For browser\u002Fedge environments, the\ncorrect package is ",{"type":46,"tag":84,"props":129,"children":131},{"className":130},[],[132],{"type":52,"value":125},{"type":52,"value":134},".",{"type":46,"tag":136,"props":137,"children":138},"hr",{},[],{"type":46,"tag":140,"props":141,"children":143},"h2",{"id":142},"how-to-use-this-skill",[144],{"type":52,"value":145},"How to Use This Skill",{"type":46,"tag":147,"props":148,"children":149},"ol",{},[150,168,206,286,319,453],{"type":46,"tag":151,"props":152,"children":153},"li",{},[154,159,161,166],{"type":46,"tag":76,"props":155,"children":156},{},[157],{"type":52,"value":158},"Match the user's intent",{"type":52,"value":160}," to a row in the Task Index below and read the\ncorresponding reference file before writing code. After reading it, scan any\n",{"type":46,"tag":76,"props":162,"children":163},{},[164],{"type":52,"value":165},"Answer checklist",{"type":52,"value":167}," in that reference and make sure the final answer covers\neach relevant item; those checklists capture details users usually need but\nare easy to omit in short answers.",{"type":46,"tag":151,"props":169,"children":170},{},[171,181,183,188,190,196,198,204],{"type":46,"tag":76,"props":172,"children":173},{},[174,176],{"type":52,"value":175},"Always import from ",{"type":46,"tag":84,"props":177,"children":179},{"className":178},[],[180],{"type":52,"value":89},{"type":52,"value":182}," (never ",{"type":46,"tag":84,"props":184,"children":186},{"className":185},[],[187],{"type":52,"value":125},{"type":52,"value":189},")\nand create a client with ",{"type":46,"tag":84,"props":191,"children":193},{"className":192},[],[194],{"type":52,"value":195},"createClient({ url })",{"type":52,"value":197}," or rely on\nsupported defaults when appropriate. Close it with ",{"type":46,"tag":84,"props":199,"children":201},{"className":200},[],[202],{"type":52,"value":203},"await client.close()",{"type":52,"value":205},"\npreferably when it's no longer needed or during graceful shutdown for global resources.",{"type":46,"tag":151,"props":207,"children":208},{},[209,222,224,230,232,245,247,253,255,260,262,268,270,276,278,284],{"type":46,"tag":76,"props":210,"children":211},{},[212,214,220],{"type":52,"value":213},"Prefer ",{"type":46,"tag":84,"props":215,"children":217},{"className":216},[],[218],{"type":52,"value":219},"JSONEachRow",{"type":52,"value":221}," for typical row inserts\u002Fselects",{"type":52,"value":223}," unless the user\nhas already chosen another format or is streaming raw bytes (CSV \u002F TSV \u002F\nParquet — see ",{"type":46,"tag":84,"props":225,"children":227},{"className":226},[],[228],{"type":52,"value":229},"examples\u002Fnode\u002Fperformance\u002F",{"type":52,"value":231},").\n",{"type":46,"tag":76,"props":233,"children":234},{},[235,237,243],{"type":52,"value":236},"Note on ",{"type":46,"tag":84,"props":238,"children":240},{"className":239},[],[241],{"type":52,"value":242},"clickhouse_settings",{"type":52,"value":244},":",{"type":52,"value":246}," settings passed to ",{"type":46,"tag":84,"props":248,"children":250},{"className":249},[],[251],{"type":52,"value":252},"createClient",{"type":52,"value":254}," are\ndefaults for every request; they can be overridden per-call by passing\n",{"type":46,"tag":84,"props":256,"children":258},{"className":257},[],[259],{"type":52,"value":242},{"type":52,"value":261}," directly to ",{"type":46,"tag":84,"props":263,"children":265},{"className":264},[],[266],{"type":52,"value":267},"insert()",{"type":52,"value":269},", ",{"type":46,"tag":84,"props":271,"children":273},{"className":272},[],[274],{"type":52,"value":275},"query()",{"type":52,"value":277},", or ",{"type":46,"tag":84,"props":279,"children":281},{"className":280},[],[282],{"type":52,"value":283},"command()",{"type":52,"value":285},".\nAlways mention this when the user configures settings at the client level.",{"type":46,"tag":151,"props":287,"children":288},{},[289,302,304,310,312,317],{"type":46,"tag":76,"props":290,"children":291},{},[292,294,300],{"type":52,"value":293},"Always use ",{"type":46,"tag":84,"props":295,"children":297},{"className":296},[],[298],{"type":52,"value":299},"query_params",{"type":52,"value":301}," for user-supplied values",{"type":52,"value":303}," — never template-\nliteral-interpolate them into SQL. See ",{"type":46,"tag":84,"props":305,"children":307},{"className":306},[],[308],{"type":52,"value":309},"reference\u002Fquery-parameters.md",{"type":52,"value":311},".\n",{"type":46,"tag":76,"props":313,"children":314},{},[315],{"type":52,"value":316},"When answering a parameter-binding question, your response must\nexplicitly name template-literal interpolation as a \"SQL injection\nrisk\"",{"type":52,"value":318}," — even when the user only asked about syntax and did not raise\nsecurity. The literal phrase \"SQL injection\" needs to appear; this is\nthe most common mistake from PostgreSQL\u002FMySQL users and the security\nframing is part of the correct answer, not an optional aside.",{"type":46,"tag":151,"props":320,"children":321},{},[322,327],{"type":46,"tag":76,"props":323,"children":324},{},[325],{"type":52,"value":326},"Pick the right method for the job:",{"type":46,"tag":328,"props":329,"children":330},"ul",{},[331,342,376,423,434],{"type":46,"tag":151,"props":332,"children":333},{},[334,340],{"type":46,"tag":84,"props":335,"children":337},{"className":336},[],[338],{"type":52,"value":339},"client.insert()",{"type":52,"value":341}," — write rows.",{"type":46,"tag":151,"props":343,"children":344},{},[345,351,353,359,361,367,368,374],{"type":46,"tag":84,"props":346,"children":348},{"className":347},[],[349],{"type":52,"value":350},"client.query()",{"type":52,"value":352}," + ",{"type":46,"tag":84,"props":354,"children":356},{"className":355},[],[357],{"type":52,"value":358},"resultSet.json()",{"type":52,"value":360}," \u002F ",{"type":46,"tag":84,"props":362,"children":364},{"className":363},[],[365],{"type":52,"value":366},".text()",{"type":52,"value":360},{"type":46,"tag":84,"props":369,"children":371},{"className":370},[],[372],{"type":52,"value":373},".stream()",{"type":52,"value":375}," — read\nrows that return data.",{"type":46,"tag":151,"props":377,"children":378},{},[379,385,387,393,394,400,401,407,408,414,415,421],{"type":46,"tag":84,"props":380,"children":382},{"className":381},[],[383],{"type":52,"value":384},"client.command()",{"type":52,"value":386}," — DDL and other statements that don't return rows\n(",{"type":46,"tag":84,"props":388,"children":390},{"className":389},[],[391],{"type":52,"value":392},"CREATE",{"type":52,"value":269},{"type":46,"tag":84,"props":395,"children":397},{"className":396},[],[398],{"type":52,"value":399},"DROP",{"type":52,"value":269},{"type":46,"tag":84,"props":402,"children":404},{"className":403},[],[405],{"type":52,"value":406},"TRUNCATE",{"type":52,"value":269},{"type":46,"tag":84,"props":409,"children":411},{"className":410},[],[412],{"type":52,"value":413},"ALTER",{"type":52,"value":269},{"type":46,"tag":84,"props":416,"children":418},{"className":417},[],[419],{"type":52,"value":420},"SET",{"type":52,"value":422}," in a session, etc.).",{"type":46,"tag":151,"props":424,"children":425},{},[426,432],{"type":46,"tag":84,"props":427,"children":429},{"className":428},[],[430],{"type":52,"value":431},"client.exec()",{"type":52,"value":433}," — when you need the raw response stream of an arbitrary\nstatement (rare in coding scenarios).",{"type":46,"tag":151,"props":435,"children":436},{},[437,443,445,451],{"type":46,"tag":84,"props":438,"children":440},{"className":439},[],[441],{"type":52,"value":442},"client.ping()",{"type":52,"value":444}," — health check; returns ",{"type":46,"tag":84,"props":446,"children":448},{"className":447},[],[449],{"type":52,"value":450},"{ success, error? }",{"type":52,"value":452},", never\nthrows on connection failure.",{"type":46,"tag":151,"props":454,"children":455},{},[456,461,463],{"type":46,"tag":76,"props":457,"children":458},{},[459],{"type":52,"value":460},"Note version constraints",{"type":52,"value":462}," when relevant. Examples:\n",{"type":46,"tag":328,"props":464,"children":465},{},[466,484,509,541,567,592,619],{"type":46,"tag":151,"props":467,"children":468},{},[469,475,477,483],{"type":46,"tag":84,"props":470,"children":472},{"className":471},[],[473],{"type":52,"value":474},"pathname",{"type":52,"value":476}," config option: client ",{"type":46,"tag":84,"props":478,"children":480},{"className":479},[],[481],{"type":52,"value":482},">= 1.0.0",{"type":52,"value":134},{"type":46,"tag":151,"props":485,"children":486},{},[487,493,495,500,502,508],{"type":46,"tag":84,"props":488,"children":490},{"className":489},[],[491],{"type":52,"value":492},"BigInt",{"type":52,"value":494}," values in ",{"type":46,"tag":84,"props":496,"children":498},{"className":497},[],[499],{"type":52,"value":299},{"type":52,"value":501},": client ",{"type":46,"tag":84,"props":503,"children":505},{"className":504},[],[506],{"type":52,"value":507},">= 1.15.0",{"type":52,"value":134},{"type":46,"tag":151,"props":510,"children":511},{},[512,518,520,526,528,533,534,540],{"type":46,"tag":84,"props":513,"children":515},{"className":514},[],[516],{"type":52,"value":517},"TupleParam",{"type":52,"value":519}," and JS ",{"type":46,"tag":84,"props":521,"children":523},{"className":522},[],[524],{"type":52,"value":525},"Map",{"type":52,"value":527}," in ",{"type":46,"tag":84,"props":529,"children":531},{"className":530},[],[532],{"type":52,"value":299},{"type":52,"value":501},{"type":46,"tag":84,"props":535,"children":537},{"className":536},[],[538],{"type":52,"value":539},">= 1.9.0",{"type":52,"value":134},{"type":46,"tag":151,"props":542,"children":543},{},[544,546,552,553,559,560,566],{"type":52,"value":545},"Configurable ",{"type":46,"tag":84,"props":547,"children":549},{"className":548},[],[550],{"type":52,"value":551},"json.parse",{"type":52,"value":360},{"type":46,"tag":84,"props":554,"children":556},{"className":555},[],[557],{"type":52,"value":558},"json.stringify",{"type":52,"value":501},{"type":46,"tag":84,"props":561,"children":563},{"className":562},[],[564],{"type":52,"value":565},">= 1.14.0",{"type":52,"value":134},{"type":46,"tag":151,"props":568,"children":569},{},[570,576,577,583,585,591],{"type":46,"tag":84,"props":571,"children":573},{"className":572},[],[574],{"type":52,"value":575},"Time",{"type":52,"value":360},{"type":46,"tag":84,"props":578,"children":580},{"className":579},[],[581],{"type":52,"value":582},"Time64",{"type":52,"value":584}," data types: ClickHouse server ",{"type":46,"tag":84,"props":586,"children":588},{"className":587},[],[589],{"type":52,"value":590},">= 25.6",{"type":52,"value":134},{"type":46,"tag":151,"props":593,"children":594},{},[595,601,603,609,611,617],{"type":46,"tag":84,"props":596,"children":598},{"className":597},[],[599],{"type":52,"value":600},"QBit",{"type":52,"value":602}," data type: ClickHouse server ",{"type":46,"tag":84,"props":604,"children":606},{"className":605},[],[607],{"type":52,"value":608},">= 25.10",{"type":52,"value":610}," (GA on ",{"type":46,"tag":84,"props":612,"children":614},{"className":613},[],[615],{"type":52,"value":616},"26.x",{"type":52,"value":618},").",{"type":46,"tag":151,"props":620,"children":621},{},[622,628,629,635,637,643,645,651,653,659,660,666,668,674],{"type":46,"tag":84,"props":623,"children":625},{"className":624},[],[626],{"type":52,"value":627},"Dynamic",{"type":52,"value":360},{"type":46,"tag":84,"props":630,"children":632},{"className":631},[],[633],{"type":52,"value":634},"Variant",{"type":52,"value":636}," \u002F new ",{"type":46,"tag":84,"props":638,"children":640},{"className":639},[],[641],{"type":52,"value":642},"JSON",{"type":52,"value":644}," types: ClickHouse server ",{"type":46,"tag":84,"props":646,"children":648},{"className":647},[],[649],{"type":52,"value":650},">= 24.1",{"type":52,"value":652}," \u002F\n",{"type":46,"tag":84,"props":654,"children":656},{"className":655},[],[657],{"type":52,"value":658},"24.5",{"type":52,"value":360},{"type":46,"tag":84,"props":661,"children":663},{"className":662},[],[664],{"type":52,"value":665},"24.8",{"type":52,"value":667}," (no longer experimental since ",{"type":46,"tag":84,"props":669,"children":671},{"className":670},[],[672],{"type":52,"value":673},"25.3",{"type":52,"value":618},{"type":46,"tag":136,"props":676,"children":677},{},[],{"type":46,"tag":140,"props":679,"children":681},{"id":680},"task-index",[682],{"type":52,"value":683},"Task Index",{"type":46,"tag":55,"props":685,"children":686},{},[687],{"type":52,"value":688},"Identify the user's task and read the matching reference file.",{"type":46,"tag":690,"props":691,"children":692},"table",{},[693,717],{"type":46,"tag":694,"props":695,"children":696},"thead",{},[697],{"type":46,"tag":698,"props":699,"children":700},"tr",{},[701,707,712],{"type":46,"tag":702,"props":703,"children":704},"th",{},[705],{"type":52,"value":706},"Task",{"type":46,"tag":702,"props":708,"children":709},{},[710],{"type":52,"value":711},"Triggers \u002F symptoms",{"type":46,"tag":702,"props":713,"children":714},{},[715],{"type":52,"value":716},"Reference file",{"type":46,"tag":718,"props":719,"children":720},"tbody",{},[721,761,807,832,876,907,983,1014,1051,1083,1128,1189],{"type":46,"tag":698,"props":722,"children":723},{},[724,733,752],{"type":46,"tag":725,"props":726,"children":727},"td",{},[728],{"type":46,"tag":76,"props":729,"children":730},{},[731],{"type":52,"value":732},"Configure \u002F connect the client",{"type":46,"tag":725,"props":734,"children":735},{},[736,738,743,745,750],{"type":52,"value":737},"Building a ",{"type":46,"tag":84,"props":739,"children":741},{"className":740},[],[742],{"type":52,"value":252},{"type":52,"value":744}," call, URL parameters, ",{"type":46,"tag":84,"props":746,"children":748},{"className":747},[],[749],{"type":52,"value":242},{"type":52,"value":751},", default format, custom HTTP headers",{"type":46,"tag":725,"props":753,"children":754},{},[755],{"type":46,"tag":84,"props":756,"children":758},{"className":757},[],[759],{"type":52,"value":760},"reference\u002Fclient-configuration.md",{"type":46,"tag":698,"props":762,"children":763},{},[764,772,798],{"type":46,"tag":725,"props":765,"children":766},{},[767],{"type":46,"tag":76,"props":768,"children":769},{},[770],{"type":52,"value":771},"Compress requests \u002F responses",{"type":46,"tag":725,"props":773,"children":774},{},[775,781,783,789,790,796],{"type":46,"tag":84,"props":776,"children":778},{"className":777},[],[779],{"type":52,"value":780},"compression",{"type":52,"value":782},", gzip vs ",{"type":46,"tag":84,"props":784,"children":786},{"className":785},[],[787],{"type":52,"value":788},"zstd",{"type":52,"value":269},{"type":46,"tag":84,"props":791,"children":793},{"className":792},[],[794],{"type":52,"value":795},"{ codec }",{"type":52,"value":797}," option shape, Node version requirements, web limitations",{"type":46,"tag":725,"props":799,"children":800},{},[801],{"type":46,"tag":84,"props":802,"children":804},{"className":803},[],[805],{"type":52,"value":806},"reference\u002Fcompression.md",{"type":46,"tag":698,"props":808,"children":809},{},[810,818,823],{"type":46,"tag":725,"props":811,"children":812},{},[813],{"type":46,"tag":76,"props":814,"children":815},{},[816],{"type":52,"value":817},"Ping the server",{"type":46,"tag":725,"props":819,"children":820},{},[821],{"type":52,"value":822},"Health checks, readiness probes, \"is ClickHouse up?\"",{"type":46,"tag":725,"props":824,"children":825},{},[826],{"type":46,"tag":84,"props":827,"children":829},{"className":828},[],[830],{"type":52,"value":831},"reference\u002Fping.md",{"type":46,"tag":698,"props":833,"children":834},{},[835,843,867],{"type":46,"tag":725,"props":836,"children":837},{},[838],{"type":46,"tag":76,"props":839,"children":840},{},[841],{"type":52,"value":842},"Choose an insert format",{"type":46,"tag":725,"props":844,"children":845},{},[846,848,853,855,860,861],{"type":52,"value":847},"\"Which format should I use to insert?\", JSON vs raw, ",{"type":46,"tag":84,"props":849,"children":851},{"className":850},[],[852],{"type":52,"value":219},{"type":52,"value":854}," vs ",{"type":46,"tag":84,"props":856,"children":858},{"className":857},[],[859],{"type":52,"value":642},{"type":52,"value":854},{"type":46,"tag":84,"props":862,"children":864},{"className":863},[],[865],{"type":52,"value":866},"JSONObjectEachRow",{"type":46,"tag":725,"props":868,"children":869},{},[870],{"type":46,"tag":84,"props":871,"children":873},{"className":872},[],[874],{"type":52,"value":875},"reference\u002Finsert-formats.md",{"type":46,"tag":698,"props":877,"children":878},{},[879,887,898],{"type":46,"tag":725,"props":880,"children":881},{},[882],{"type":46,"tag":76,"props":883,"children":884},{},[885],{"type":52,"value":886},"Insert into a subset of columns \u002F different database",{"type":46,"tag":725,"props":888,"children":889},{},[890,896],{"type":46,"tag":84,"props":891,"children":893},{"className":892},[],[894],{"type":52,"value":895},"insert({ columns })",{"type":52,"value":897},", excluding columns, ephemeral columns, cross-DB inserts",{"type":46,"tag":725,"props":899,"children":900},{},[901],{"type":46,"tag":84,"props":902,"children":904},{"className":903},[],[905],{"type":52,"value":906},"reference\u002Finsert-columns.md",{"type":46,"tag":698,"props":908,"children":909},{},[910,918,974],{"type":46,"tag":725,"props":911,"children":912},{},[913],{"type":46,"tag":76,"props":914,"children":915},{},[916],{"type":52,"value":917},"Insert values, expressions, dates, decimals",{"type":46,"tag":725,"props":919,"children":920},{},[921,927,929,935,937,943,945,951,953,959,961,967,969],{"type":46,"tag":84,"props":922,"children":924},{"className":923},[],[925],{"type":52,"value":926},"INSERT … VALUES",{"type":52,"value":928}," with SQL functions, ",{"type":46,"tag":84,"props":930,"children":932},{"className":931},[],[933],{"type":52,"value":934},"Date",{"type":52,"value":936},"\u002F",{"type":46,"tag":84,"props":938,"children":940},{"className":939},[],[941],{"type":52,"value":942},"DateTime",{"type":52,"value":944}," from JS, ",{"type":46,"tag":84,"props":946,"children":948},{"className":947},[],[949],{"type":52,"value":950},"Decimal",{"type":52,"value":952}," precision, ",{"type":46,"tag":84,"props":954,"children":956},{"className":955},[],[957],{"type":52,"value":958},"INSERT … SELECT",{"type":52,"value":960},"; inserting a UUID into a ",{"type":46,"tag":84,"props":962,"children":964},{"className":963},[],[965],{"type":52,"value":966},"UInt128",{"type":52,"value":968}," column is tricky — use when the user is writing code that stores a UUID as ",{"type":46,"tag":84,"props":970,"children":972},{"className":971},[],[973],{"type":52,"value":966},{"type":46,"tag":725,"props":975,"children":976},{},[977],{"type":46,"tag":84,"props":978,"children":980},{"className":979},[],[981],{"type":52,"value":982},"reference\u002Finsert-values.md",{"type":46,"tag":698,"props":984,"children":985},{},[986,994,1005],{"type":46,"tag":725,"props":987,"children":988},{},[989],{"type":46,"tag":76,"props":990,"children":991},{},[992],{"type":52,"value":993},"Async inserts (server-side batching)",{"type":46,"tag":725,"props":995,"children":996},{},[997,1003],{"type":46,"tag":84,"props":998,"children":1000},{"className":999},[],[1001],{"type":52,"value":1002},"async_insert=1",{"type":52,"value":1004},", fire-and-forget vs wait-for-ack",{"type":46,"tag":725,"props":1006,"children":1007},{},[1008],{"type":46,"tag":84,"props":1009,"children":1011},{"className":1010},[],[1012],{"type":52,"value":1013},"reference\u002Fasync-insert.md",{"type":46,"tag":698,"props":1015,"children":1016},{},[1017,1025,1042],{"type":46,"tag":725,"props":1018,"children":1019},{},[1020],{"type":46,"tag":76,"props":1021,"children":1022},{},[1023],{"type":52,"value":1024},"Select and parse results",{"type":46,"tag":725,"props":1026,"children":1027},{},[1028,1033,1035,1040],{"type":46,"tag":84,"props":1029,"children":1031},{"className":1030},[],[1032],{"type":52,"value":219},{"type":52,"value":1034}," reads, ",{"type":46,"tag":84,"props":1036,"children":1038},{"className":1037},[],[1039],{"type":52,"value":642},{"type":52,"value":1041}," with metadata, picking a select format",{"type":46,"tag":725,"props":1043,"children":1044},{},[1045],{"type":46,"tag":84,"props":1046,"children":1048},{"className":1047},[],[1049],{"type":52,"value":1050},"reference\u002Fselect-formats.md",{"type":46,"tag":698,"props":1052,"children":1053},{},[1054,1062,1075],{"type":46,"tag":725,"props":1055,"children":1056},{},[1057],{"type":46,"tag":76,"props":1058,"children":1059},{},[1060],{"type":52,"value":1061},"Parameterize queries",{"type":46,"tag":725,"props":1063,"children":1064},{},[1065,1067,1073],{"type":52,"value":1066},"Binding values, special characters \u002F escaping, \"SQL injection?\", ",{"type":46,"tag":84,"props":1068,"children":1070},{"className":1069},[],[1071],{"type":52,"value":1072},"{name: Type}",{"type":52,"value":1074}," syntax",{"type":46,"tag":725,"props":1076,"children":1077},{},[1078],{"type":46,"tag":84,"props":1079,"children":1081},{"className":1080},[],[1082],{"type":52,"value":309},{"type":46,"tag":698,"props":1084,"children":1085},{},[1086,1094,1119],{"type":46,"tag":725,"props":1087,"children":1088},{},[1089],{"type":46,"tag":76,"props":1090,"children":1091},{},[1092],{"type":52,"value":1093},"Sessions & temporary tables",{"type":46,"tag":725,"props":1095,"children":1096},{},[1097,1103,1104,1110,1112,1117],{"type":46,"tag":84,"props":1098,"children":1100},{"className":1099},[],[1101],{"type":52,"value":1102},"session_id",{"type":52,"value":269},{"type":46,"tag":84,"props":1105,"children":1107},{"className":1106},[],[1108],{"type":52,"value":1109},"CREATE TEMPORARY TABLE",{"type":52,"value":1111},", per-session ",{"type":46,"tag":84,"props":1113,"children":1115},{"className":1114},[],[1116],{"type":52,"value":420},{"type":52,"value":1118}," commands",{"type":46,"tag":725,"props":1120,"children":1121},{},[1122],{"type":46,"tag":84,"props":1123,"children":1125},{"className":1124},[],[1126],{"type":52,"value":1127},"reference\u002Fsessions.md",{"type":46,"tag":698,"props":1129,"children":1130},{},[1131,1139,1180],{"type":46,"tag":725,"props":1132,"children":1133},{},[1134],{"type":46,"tag":76,"props":1135,"children":1136},{},[1137],{"type":52,"value":1138},"Modern data types",{"type":46,"tag":725,"props":1140,"children":1141},{},[1142,1147,1148,1153,1154,1159,1161,1166,1167,1172,1173,1178],{"type":46,"tag":84,"props":1143,"children":1145},{"className":1144},[],[1146],{"type":52,"value":627},{"type":52,"value":269},{"type":46,"tag":84,"props":1149,"children":1151},{"className":1150},[],[1152],{"type":52,"value":634},{"type":52,"value":269},{"type":46,"tag":84,"props":1155,"children":1157},{"className":1156},[],[1158],{"type":52,"value":642},{"type":52,"value":1160}," (object), ",{"type":46,"tag":84,"props":1162,"children":1164},{"className":1163},[],[1165],{"type":52,"value":575},{"type":52,"value":269},{"type":46,"tag":84,"props":1168,"children":1170},{"className":1169},[],[1171],{"type":52,"value":582},{"type":52,"value":269},{"type":46,"tag":84,"props":1174,"children":1176},{"className":1175},[],[1177],{"type":52,"value":600},{"type":52,"value":1179}," (vector search)",{"type":46,"tag":725,"props":1181,"children":1182},{},[1183],{"type":46,"tag":84,"props":1184,"children":1186},{"className":1185},[],[1187],{"type":52,"value":1188},"reference\u002Fdata-types.md",{"type":46,"tag":698,"props":1190,"children":1191},{},[1192,1200,1227],{"type":46,"tag":725,"props":1193,"children":1194},{},[1195],{"type":46,"tag":76,"props":1196,"children":1197},{},[1198],{"type":52,"value":1199},"Custom JSON parse\u002Fstringify",{"type":46,"tag":725,"props":1201,"children":1202},{},[1203,1205,1211,1212,1218,1220,1225],{"type":52,"value":1204},"Plug in ",{"type":46,"tag":84,"props":1206,"children":1208},{"className":1207},[],[1209],{"type":52,"value":1210},"JSONBig",{"type":52,"value":360},{"type":46,"tag":84,"props":1213,"children":1215},{"className":1214},[],[1216],{"type":52,"value":1217},"safe-stable-stringify",{"type":52,"value":1219}," \u002F a ",{"type":46,"tag":84,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":52,"value":492},{"type":52,"value":1226},"-aware serializer",{"type":46,"tag":725,"props":1228,"children":1229},{},[1230],{"type":46,"tag":84,"props":1231,"children":1233},{"className":1232},[],[1234],{"type":52,"value":1235},"reference\u002Fcustom-json.md",{"type":46,"tag":136,"props":1237,"children":1238},{},[],{"type":46,"tag":140,"props":1240,"children":1242},{"id":1241},"conventions-used-in-answers",[1243],{"type":52,"value":1244},"Conventions used in answers",{"type":46,"tag":328,"props":1246,"children":1247},{},[1248,1261,1273,1294,1307,1340],{"type":46,"tag":151,"props":1249,"children":1250},{},[1251,1253,1259],{"type":52,"value":1252},"Always show ",{"type":46,"tag":84,"props":1254,"children":1256},{"className":1255},[],[1257],{"type":52,"value":1258},"import { createClient } from '@clickhouse\u002Fclient'",{"type":52,"value":1260}," (Node, never\nWeb).",{"type":46,"tag":151,"props":1262,"children":1263},{},[1264,1266,1271],{"type":52,"value":1265},"Always ",{"type":46,"tag":84,"props":1267,"children":1269},{"className":1268},[],[1270],{"type":52,"value":203},{"type":52,"value":1272}," at the end of self-contained snippets; in\nlong-running services, close on graceful shutdown.",{"type":46,"tag":151,"props":1274,"children":1275},{},[1276,1278,1284,1286,1292],{"type":52,"value":1277},"For inserts, prefer ",{"type":46,"tag":84,"props":1279,"children":1281},{"className":1280},[],[1282],{"type":52,"value":1283},"format: 'JSONEachRow'",{"type":52,"value":1285}," and ",{"type":46,"tag":84,"props":1287,"children":1289},{"className":1288},[],[1290],{"type":52,"value":1291},"values: [...]",{"type":52,"value":1293}," unless the\nuser's scenario requires otherwise.",{"type":46,"tag":151,"props":1295,"children":1296},{},[1297,1299,1305],{"type":52,"value":1298},"For selects, prefer ",{"type":46,"tag":84,"props":1300,"children":1302},{"className":1301},[],[1303],{"type":52,"value":1304},"await (await client.query({...})).json\u003CRowType>()",{"type":52,"value":1306}," for\nsmall \u002F medium result sets; for bigger results suggest streaming.",{"type":46,"tag":151,"props":1308,"children":1309},{},[1310,1312,1317,1319,1325,1326,1332,1333,1339],{"type":52,"value":1311},"When showing parameter binding, use ClickHouse's native ",{"type":46,"tag":84,"props":1313,"children":1315},{"className":1314},[],[1316],{"type":52,"value":1072},{"type":52,"value":1318},"\nsyntax — never ",{"type":46,"tag":84,"props":1320,"children":1322},{"className":1321},[],[1323],{"type":52,"value":1324},"$1",{"type":52,"value":269},{"type":46,"tag":84,"props":1327,"children":1329},{"className":1328},[],[1330],{"type":52,"value":1331},"?",{"type":52,"value":277},{"type":46,"tag":84,"props":1334,"children":1336},{"className":1335},[],[1337],{"type":52,"value":1338},":name",{"type":52,"value":134},{"type":46,"tag":151,"props":1341,"children":1342},{},[1343,1345,1351,1353,1358,1360,1366],{"type":52,"value":1344},"For DDL inside a cluster or behind a load balancer, set\n",{"type":46,"tag":84,"props":1346,"children":1348},{"className":1347},[],[1349],{"type":52,"value":1350},"clickhouse_settings: { wait_end_of_query: 1 }",{"type":52,"value":1352}," on the ",{"type":46,"tag":84,"props":1354,"children":1356},{"className":1355},[],[1357],{"type":52,"value":283},{"type":52,"value":1359}," call so\nthe server only acknowledges after the change is applied. See\n",{"type":46,"tag":61,"props":1361,"children":1364},{"href":1362,"rel":1363},"https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Fen\u002Finterfaces\u002Fhttp\u002F#response-buffering",[65],[1365],{"type":52,"value":1362},{"type":52,"value":134},{"type":46,"tag":136,"props":1368,"children":1369},{},[],{"type":46,"tag":140,"props":1371,"children":1373},{"id":1372},"out-of-scope",[1374],{"type":52,"value":1375},"Out of scope",{"type":46,"tag":55,"props":1377,"children":1378},{},[1379,1381,1386,1388,1392],{"type":52,"value":1380},"This skill covers day-to-day coding against ",{"type":46,"tag":84,"props":1382,"children":1384},{"className":1383},[],[1385],{"type":52,"value":89},{"type":52,"value":1387}," (Node).\nThe following topics are intentionally ",{"type":46,"tag":76,"props":1389,"children":1390},{},[1391],{"type":52,"value":110},{"type":52,"value":1393}," covered here:",{"type":46,"tag":328,"props":1395,"children":1396},{},[1397,1421,1442,1463,1490],{"type":46,"tag":151,"props":1398,"children":1399},{},[1400,1411,1413,1419],{"type":46,"tag":76,"props":1401,"children":1402},{},[1403,1405],{"type":52,"value":1404},"Errors, hangs, type mismatches, proxy pathname surprises, log silence,\nsocket hang-ups, ",{"type":46,"tag":84,"props":1406,"children":1408},{"className":1407},[],[1409],{"type":52,"value":1410},"ECONNRESET",{"type":52,"value":1412}," → use the\n",{"type":46,"tag":84,"props":1414,"children":1416},{"className":1415},[],[1417],{"type":52,"value":1418},"clickhouse-js-node-troubleshooting",{"type":52,"value":1420}," skill.",{"type":46,"tag":151,"props":1422,"children":1423},{},[1424,1429,1431,1441],{"type":46,"tag":76,"props":1425,"children":1426},{},[1427],{"type":52,"value":1428},"Streaming, Parquet, file streams, server-side bulk moves, progress\nstreaming, async-insert throughput tuning",{"type":52,"value":1430}," — see\n",{"type":46,"tag":61,"props":1432,"children":1435},{"href":1433,"rel":1434},"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fperformance",[65],[1436],{"type":46,"tag":84,"props":1437,"children":1439},{"className":1438},[],[1440],{"type":52,"value":229},{"type":52,"value":134},{"type":46,"tag":151,"props":1443,"children":1444},{},[1445,1450,1451,1462],{"type":46,"tag":76,"props":1446,"children":1447},{},[1448],{"type":52,"value":1449},"TLS, RBAC \u002F read-only users, deeper SQL-injection guidance",{"type":52,"value":1430},{"type":46,"tag":61,"props":1452,"children":1455},{"href":1453,"rel":1454},"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fsecurity",[65],[1456],{"type":46,"tag":84,"props":1457,"children":1459},{"className":1458},[],[1460],{"type":52,"value":1461},"examples\u002Fnode\u002Fsecurity\u002F",{"type":52,"value":134},{"type":46,"tag":151,"props":1464,"children":1465},{},[1466,1477,1478,1489],{"type":46,"tag":76,"props":1467,"children":1468},{},[1469,1475],{"type":46,"tag":84,"props":1470,"children":1472},{"className":1471},[],[1473],{"type":52,"value":1474},"CREATE TABLE",{"type":52,"value":1476}," patterns, deployment-shaped connection strings,\nreplication \u002F sharding choices",{"type":52,"value":1430},{"type":46,"tag":61,"props":1479,"children":1482},{"href":1480,"rel":1481},"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fschema-and-deployments",[65],[1483],{"type":46,"tag":84,"props":1484,"children":1486},{"className":1485},[],[1487],{"type":52,"value":1488},"examples\u002Fnode\u002Fschema-and-deployments\u002F",{"type":52,"value":134},{"type":46,"tag":151,"props":1491,"children":1492},{},[1493,1498,1500,1505,1507,1518],{"type":46,"tag":76,"props":1494,"children":1495},{},[1496],{"type":52,"value":1497},"Browser, Web Worker, Next.js Edge, Cloudflare Workers",{"type":52,"value":1499}," — use\n",{"type":46,"tag":84,"props":1501,"children":1503},{"className":1502},[],[1504],{"type":52,"value":125},{"type":52,"value":1506}," and see\n",{"type":46,"tag":61,"props":1508,"children":1511},{"href":1509,"rel":1510},"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fweb",[65],[1512],{"type":46,"tag":84,"props":1513,"children":1515},{"className":1514},[],[1516],{"type":52,"value":1517},"examples\u002Fweb\u002F",{"type":52,"value":134},{"type":46,"tag":136,"props":1520,"children":1521},{},[],{"type":46,"tag":140,"props":1523,"children":1525},{"id":1524},"still-stuck",[1526],{"type":52,"value":1527},"Still Stuck?",{"type":46,"tag":328,"props":1529,"children":1530},{},[1531,1547,1556,1566],{"type":46,"tag":151,"props":1532,"children":1533},{},[1534,1545],{"type":46,"tag":61,"props":1535,"children":1538},{"href":1536,"rel":1537},"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-js\u002Ftree\u002Fmain\u002Fexamples\u002Fnode\u002Fcoding",[65],[1539],{"type":46,"tag":84,"props":1540,"children":1542},{"className":1541},[],[1543],{"type":52,"value":1544},"examples\u002Fnode\u002Fcoding\u002F",{"type":52,"value":1546}," — the runnable corpus this skill is built on.",{"type":46,"tag":151,"props":1548,"children":1549},{},[1550],{"type":46,"tag":61,"props":1551,"children":1553},{"href":63,"rel":1552},[65],[1554],{"type":52,"value":1555},"ClickHouse JS client docs",{"type":46,"tag":151,"props":1557,"children":1558},{},[1559],{"type":46,"tag":61,"props":1560,"children":1563},{"href":1561,"rel":1562},"https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Finterfaces\u002Fformats",[65],[1564],{"type":52,"value":1565},"ClickHouse supported formats",{"type":46,"tag":151,"props":1567,"children":1568},{},[1569],{"type":46,"tag":61,"props":1570,"children":1573},{"href":1571,"rel":1572},"https:\u002F\u002Fclickhouse.com\u002Fdocs\u002Fsql-reference\u002Fdata-types",[65],[1574],{"type":52,"value":1575},"ClickHouse data types",{"items":1577,"total":1768},[1578,1600,1614,1628,1642,1658,1682,1700,1714,1721,1731,1751],{"slug":1579,"name":1579,"fn":1580,"description":1581,"org":1582,"tags":1583,"stars":1597,"repoUrl":1598,"updatedAt":1599},"chdb-datastore","accelerate pandas with chDB datastore","Use when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas. Provides chDB DataStore — same pandas API, ClickHouse engine underneath. Also handles reading from S3, MySQL, PostgreSQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake as DataFrames and joining across sources. TRIGGER when: user mentions DataFrame, parquet, csv, \"fast pandas\", \"speed up pandas\", or cross-source DataFrame joins; user imports `chdb.datastore` or `from datastore import DataStore`. SKIP this skill for raw SQL syntax (use chdb-sql instead), ClickHouse server administration, or non-Python DataStore API work.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1584,1585,1588,1591,1594],{"name":9,"slug":8,"type":13},{"name":1586,"slug":1587,"type":13},"Data Analysis","data-analysis",{"name":1589,"slug":1590,"type":13},"Data Engineering","data-engineering",{"name":1592,"slug":1593,"type":13},"Performance","performance",{"name":1595,"slug":1596,"type":13},"Python","python",493,"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fagent-skills","2026-04-15T04:56:32.0629",{"slug":1601,"name":1601,"fn":1602,"description":1603,"org":1604,"tags":1605,"stars":1597,"repoUrl":1598,"updatedAt":1613},"chdb-sql","run ClickHouse SQL queries in Python","Use when the user wants to run SQL — especially analytical SQL — on local files (parquet\u002Fcsv\u002Fjson), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for stateful multi-step pipelines, parametrized queries, and cross-source joins via `s3()`, `mysql()`, `postgresql()`, `iceberg()`, `deltaLake()`, `remoteSecure()` table functions. TRIGGER when: user wants SQL on parquet\u002Fcsv\u002Ffiles or across remote analytical sources; uses ClickHouse SQL features (window functions, windowFunnel, geoToH3, JSON path ops, Session, parametrized queries); imports `chdb` or calls `chdb.query()`. SKIP this skill for pandas-style DataFrame method-chaining (use chdb-datastore instead) or ClickHouse server administration.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1606,1607,1608,1609,1610],{"name":9,"slug":8,"type":13},{"name":1586,"slug":1587,"type":13},{"name":1589,"slug":1590,"type":13},{"name":1595,"slug":1596,"type":13},{"name":1611,"slug":1612,"type":13},"SQL","sql","2026-04-15T04:56:33.299509",{"slug":1615,"name":1615,"fn":1616,"description":1617,"org":1618,"tags":1619,"stars":1597,"repoUrl":1598,"updatedAt":1627},"clickhouse-architecture-advisor","advise on ClickHouse architectures","MUST USE when designing ClickHouse architectures, selecting between ingestion or modeling patterns, or translating best practices into workload-specific system designs. Complements clickhouse-best-practices with decision frameworks and explicit provenance labels.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1620,1623,1624,1625,1626],{"name":1621,"slug":1622,"type":13},"Architecture","architecture",{"name":9,"slug":8,"type":13},{"name":1589,"slug":1590,"type":13},{"name":21,"slug":22,"type":13},{"name":1592,"slug":1593,"type":13},"2026-04-15T04:56:34.534001",{"slug":1629,"name":1629,"fn":1630,"description":1631,"org":1632,"tags":1633,"stars":1597,"repoUrl":1598,"updatedAt":1641},"clickhouse-best-practices","review ClickHouse schemas and queries","MUST USE when reviewing ClickHouse schemas, queries, or configurations. Contains 31 rules that MUST be checked before providing recommendations. Always read relevant rule files and cite specific rules in responses.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1634,1635,1638,1639,1640],{"name":9,"slug":8,"type":13},{"name":1636,"slug":1637,"type":13},"Code Review","code-review",{"name":21,"slug":22,"type":13},{"name":1592,"slug":1593,"type":13},{"name":1611,"slug":1612,"type":13},"2026-04-06T18:07:18.953931",{"slug":1643,"name":1643,"fn":1644,"description":1645,"org":1646,"tags":1647,"stars":1597,"repoUrl":1598,"updatedAt":1657},"clickhouse-js-node-rowbinary","encode and decode ClickHouse RowBinary streams","Generate TypeScript\u002FJavaScript code that reads\u002Fdecodes AND writes\u002Fencodes ClickHouse RowBinary streams for the ClickHouse HTTP server. Use this skill whenever a user wants to parse or produce `RowBinary`, `RowBinaryWithNames`, or `RowBinaryWithNamesAndTypes`. Node.js only, doesn't cover browsers.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1648,1651,1652,1653,1655],{"name":1649,"slug":1650,"type":13},"API Development","api-development",{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":1654,"slug":31,"type":13},"JavaScript",{"name":1656,"slug":34,"type":13},"TypeScript","2026-07-01T08:16:19.314713",{"slug":1659,"name":1659,"fn":1660,"description":1661,"org":1662,"tags":1663,"stars":1597,"repoUrl":1598,"updatedAt":1681},"clickhouse-managed-postgres-rca","diagnose performance issues on ClickHouse-managed Postgres","MUST USE when investigating performance issues on a ClickHouse-managed Postgres instance. Provides an evidence-based RCA workflow that scrapes the Prometheus endpoint for system signal, pulls per-digest evidence from the Slow Query Patterns API, and recommends (does not apply) a fix.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1664,1665,1668,1671,1674,1675,1678],{"name":9,"slug":8,"type":13},{"name":1666,"slug":1667,"type":13},"Debugging","debugging",{"name":1669,"slug":1670,"type":13},"Monitoring","monitoring",{"name":1672,"slug":1673,"type":13},"Observability","observability",{"name":1592,"slug":1593,"type":13},{"name":1676,"slug":1677,"type":13},"PostgreSQL","postgresql",{"name":1679,"slug":1680,"type":13},"Prometheus","prometheus","2026-06-08T08:19:31.589978",{"slug":1683,"name":1683,"fn":1684,"description":1685,"org":1686,"tags":1687,"stars":1597,"repoUrl":1598,"updatedAt":1699},"infra-clickhouse","manage ClickHouse server instances","Sets up and manages ClickHouse using the clickhousectl CLI — installs and runs a local ClickHouse server for development, and creates managed ClickHouse Cloud services for production (authentication, service creation, schema migration, application connection). Use when the user wants to build an application with ClickHouse, set up a local ClickHouse dev environment, create tables and start querying, deploy ClickHouse to production or ClickHouse Cloud, or migrate from a local setup to the cloud.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1688,1691,1692,1693,1696],{"name":1689,"slug":1690,"type":13},"CLI","cli",{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":1694,"slug":1695,"type":13},"Deployment","deployment",{"name":1697,"slug":1698,"type":13},"Infrastructure","infrastructure","2026-07-28T06:06:00.02089",{"slug":1701,"name":1701,"fn":1702,"description":1703,"org":1704,"tags":1705,"stars":1597,"repoUrl":1598,"updatedAt":1713},"infra-postgres","manage PostgreSQL database instances","Sets up and manages Postgres using the clickhousectl CLI — runs a local Docker-backed Postgres for development, and creates and operates managed ClickHouse Cloud Postgres services (connections, TLS, runtime config, read replicas, failover, point-in-time restore). Use when the user wants a Postgres or PostgreSQL database for their application, a local Postgres dev environment, psql access, or a managed\u002Fproduction Postgres in ClickHouse Cloud, or mentions moving a local Postgres to production.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1706,1707,1708,1711,1712],{"name":21,"slug":22,"type":13},{"name":1694,"slug":1695,"type":13},{"name":1709,"slug":1710,"type":13},"Docker","docker",{"name":1697,"slug":1698,"type":13},{"name":1676,"slug":1677,"type":13},"2026-07-28T06:06:07.151976",{"slug":4,"name":4,"fn":5,"description":6,"org":1715,"tags":1716,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1717,1718,1719,1720],{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"slug":1418,"name":1418,"fn":1722,"description":1723,"org":1724,"tags":1725,"stars":23,"repoUrl":24,"updatedAt":1730},"troubleshoot ClickHouse Node.js client","Troubleshoot and resolve common issues with the ClickHouse Node.js client (@clickhouse\u002Fclient). Use this skill whenever a user reports errors, unexpected behavior, or configuration questions involving the Node.js client specifically — including socket hang-up errors, Keep-Alive problems, stream handling issues, data type mismatches, read-only user restrictions, proxy\u002FTLS setup problems, or long-running query timeouts. Trigger even when the user hasn't precisely named the issue; vague symptoms like \"my inserts keep failing\" or \"connection drops randomly\" in a Node.js context are strong signals to use this skill. Do NOT use for browser\u002FWeb client issues.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1726,1727,1728,1729],{"name":9,"slug":8,"type":13},{"name":1666,"slug":1667,"type":13},{"name":18,"slug":32,"type":13},{"name":1656,"slug":34,"type":13},"2026-04-14T04:56:39.447406",{"slug":1732,"name":1732,"fn":1733,"description":1734,"org":1735,"tags":1736,"stars":1748,"repoUrl":1749,"updatedAt":1750},"clickstack-otel-collector","set up OpenTelemetry collector for ClickHouse","Use when a user wants to wire an OpenTelemetry collector into a Managed ClickStack service on ClickHouse Cloud, either by deploying a new local collector (Docker run or Docker Compose) or by configuring their own existing collector, then send rich synthetic telemetry and verify it is visible in ClickStack.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1737,1738,1741,1744,1745],{"name":9,"slug":8,"type":13},{"name":1739,"slug":1740,"type":13},"Logs","logs",{"name":1742,"slug":1743,"type":13},"Metrics","metrics",{"name":1672,"slug":1673,"type":13},{"name":1746,"slug":1747,"type":13},"OpenTelemetry","opentelemetry",196,"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-docs","2026-06-11T08:25:17.959323",{"slug":1752,"name":1752,"fn":1753,"description":1754,"org":1755,"tags":1756,"stars":1765,"repoUrl":1766,"updatedAt":1767},"setup","set up ClickHouse MCP server connections","Guides users through setting up the ClickHouse MCP server connection bundled with this plugin. Use when the user first installs the plugin or has trouble connecting to ClickHouse.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1757,1758,1759,1762],{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":1760,"slug":1761,"type":13},"Local Development","local-development",{"name":1763,"slug":1764,"type":13},"MCP","mcp",4,"https:\u002F\u002Fgithub.com\u002FClickHouse\u002Fclickhouse-claude-code-plugin","2026-04-19T04:59:29.849185",12,{"items":1770,"total":1785},[1771,1778],{"slug":4,"name":4,"fn":5,"description":6,"org":1772,"tags":1773,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1774,1775,1776,1777],{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"name":21,"slug":22,"type":13},{"name":18,"slug":19,"type":13},{"slug":1418,"name":1418,"fn":1722,"description":1723,"org":1779,"tags":1780,"stars":23,"repoUrl":24,"updatedAt":1730},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[1781,1782,1783,1784],{"name":9,"slug":8,"type":13},{"name":1666,"slug":1667,"type":13},{"name":18,"slug":32,"type":13},{"name":1656,"slug":34,"type":13},2]