{"name":"@clickhouse/client","version":"0.0.1","keywords":["clickhouse","sql","client"],"license":"Apache-2.0","_id":"@clickhouse/client@0.0.1","maintainers":[{"name":"serge.klochkov.ch","email":"serge.klochkov@clickhouse.com"},{"name":"mikhail.shustov-clickhouse","email":"mikhail.shustov@clickhouse.com"},{"name":"serge.klochkov","email":"hypnoash@gmail.com"}],"dist":{"shasum":"d868e7d5f6692724a84ec2062afd557a08a6dc42","tarball":"http://registry-npm.ywwl.com/@clickhouse/client/download/@clickhouse/client-0.0.1.tgz","fileCount":105,"integrity":"sha512-SinqIcNZmWIk7W0X63iQZOtsd6BWuDR8Vmv+NlLGvaTaSI7pwN5YyLGNcMFdxQnAPIdC1n0NX8mjfFg62saIBg==","signatures":[{"sig":"MEUCIDD1yk+wuh/vDZZCVUAdo7EFEsTDJKY1sRrBUkBu3iyeAiEAljz4Nj5pCFynhsZde9lb07uBLQ9jIn66Z8rMEYMJr/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":264722,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIuhPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8XhAAmWKTBHxfODfnJ2esW9QwgEVU21iEA6sINfGULryMAPM2RuxC\r\naglmXDZpCX7S1E5TVtTCPPUCOEJjzS7sma20jggby29THxQqO64hyeQmr3eI\r\n7Ln1i3hfNsL5+FD7wfCWtR8rsYD/u/7vF17ZxFK2ph1NKMxfv9daYNPAUA75\r\n4uPn8BEDrKgqqr8jmVEC7REX0BTTkqeqnlE1Xn5flfHITUzRAmQEVkopDoWo\r\nfzZunqLU4WYKUFxO3pvV95u4F8WjXcLkwgLeyviXE78Y4TACJ4d800yj8yJZ\r\nkkFn2QTByxKKFgNMoC3TZQryUZnFnO2VM/uV1DN4zM1TiBxw27fZYE4vVCO3\r\npBe0kNara8ViW4uj9pEZ+ISEImZJcg+URZMECzl37Apfd5oLH8Ch2HhlF5sL\r\n/LHJcAkWifYQN6+Er31wwUFpZztuifUzteVg31gfXSSvzB4WPnzJbIx0gTib\r\nvcoqWfXrXlN48RCSiYN5bb6M2DkQBtr0Xu+u21NioxCBLIUKlc8KruzuyCor\r\nmm+eA2bNu5NvaW8bLAZaBnwFjmJt9TcMBQCIlGTCB5aGyidoz9ZQdBz6CvMB\r\nz3lL/zfu9gMJfs+9t18N0e3RF7ftC2m0chEE3CB5U5PGXeOSQuOGI+8REsf8\r\nUV9smIc60tKXspFKnZ0dVVUo3p/gl5T8FNg=\r\n=dBuB\r\n-----END PGP SIGNATURE-----\r\n","size":65144,"noattachment":false,"key":"/@clickhouse/client/-/@clickhouse/client-0.0.1.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=14"},"gitHead":"c5c4d981bb35eb08bb9ebb2903ce8f0323819a7d","private":false,"scripts":{"lint":"eslint . --ext .ts","test":"jest --reporters jest-silent-reporter --testPathPattern=__tests__ --globalSetup='<rootDir>/__tests__/setup.integration.ts'","build":"rm -rf dist; tsc","prepare":"husky install","lint:fix":"eslint --fix . --ext .ts","build:all":"rm -rf dist; tsc --project tsconfig.dev.json","test:unit":"jest --reporters jest-silent-reporter --testMatch='**/__tests__/{unit,utils}/*.test.ts'","typecheck":"tsc --project tsconfig.dev.json --noEmit","test:integration":"jest --reporters jest-silent-reporter --runInBand --testPathPattern=__tests__/integration --globalSetup='<rootDir>/__tests__/setup.integration.ts'","test:integration:cloud":"CLICKHOUSE_TEST_ENVIRONMENT=cloud jest --reporters jest-silent-reporter --runInBand --testPathPattern=__tests__/integration --globalSetup='<rootDir>/__tests__/setup.integration.ts'","test:integration:local_cluster":"CLICKHOUSE_TEST_ENVIRONMENT=local_cluster jest --reporters jest-silent-reporter --runInBand --testPathPattern=__tests__/integration --globalSetup='<rootDir>/__tests__/setup.integration.ts'"},"_npmUser":{"name":"serge.klochkov","email":"hypnoash@gmail.com"},"_npmVersion":"8.19.1","description":"Official JS client for ClickHouse DB","directories":{},"lint-staged":{"*.ts":["prettier --write","eslint --fix"]},"_nodeVersion":"14.17.0","dependencies":{"split2":"^4.1.0","node-abort-controller":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.3","uuid":"^9.0.0","husky":"^8.0.1","eslint":"^8.23.1","ts-jest":"^29.0.1","prettier":"2.7.1","ts-loader":"^9.3.1","typescript":"^4.8.3","@types/jest":"^29.0.2","@types/node":"^18.7.18","@types/uuid":"^8.3.4","lint-staged":"^13.0.3","@types/split2":"^3.2.1","jest-silent-reporter":"^0.5.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.37.0","@typescript-eslint/eslint-plugin":"^5.37.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.0.1_1663232079494_0.695588287869255","host":"s3://npm-registry-packages"},"readme":"# @clickhouse/client\n\nOfficial Node.js client for [ClickHouse](https://clickhouse.com/), written\npurely in TypeScript and thoroughly tested against actual ClickHouse versions.\n\nIt is built on top of the Node.js [HTTP](https://nodejs.org/api/http.html) and\n[Stream](https://nodejs.org/api/stream.html) APIs and supports streaming for\nboth selects and inserts. The client has zero external dependencies and is\noptimized for maximum performance.\n\n> Looking for a browser / edge runtime (Cloudflare Workers, etc.) instead? Use\n> [`@clickhouse/client-web`](https://www.npmjs.com/package/@clickhouse/client-web).\n\n## Installation\n\n```sh\nnpm i @clickhouse/client\n```\n\n## Environment requirements\n\nNode.js must be available in the environment to run the client. The client is\ncompatible with all the [maintained](https://github.com/nodejs/release#readme)\nNode.js releases.\n\n| Node.js version | Supported? |\n| --------------- | ---------- |\n| 26.x            | ✔          |\n| 24.x            | ✔          |\n| 22.x            | ✔          |\n| 20.x            | ✔          |\n\nIf using TypeScript, version\n[4.5](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html)\nor above is required to enable\n[inline import and export syntax](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifiers-on-import-names).\n\n## Compatibility with ClickHouse\n\n| Client version | ClickHouse |\n| -------------- | ---------- |\n| 1.12.0+        | 24.8+      |\n\nThe client may work with older versions too; however, this is best-effort\nsupport and is not guaranteed.\n\n## Quick start\n\n```ts\nimport { createClient } from \"@clickhouse/client\";\n\nconst client = createClient({\n  url: process.env.CLICKHOUSE_URL ?? \"http://localhost:8123\",\n  username: process.env.CLICKHOUSE_USER ?? \"default\",\n  password: process.env.CLICKHOUSE_PASSWORD ?? \"\",\n});\n\nconst resultSet = await client.query({\n  query: \"SELECT * FROM system.tables\",\n  format: \"JSONEachRow\",\n});\n\nconst tables = await resultSet.json();\nconsole.log(tables);\n\nawait client.close();\n```\n\nSee more examples in the\n[examples directory](https://github.com/ClickHouse/clickhouse-js/tree/main/examples).\n\n## Documentation\n\nSee the [ClickHouse website](https://clickhouse.com/docs/integrations/javascript)\nfor the full documentation.\n\n## Changelog\n\nSee [`CHANGELOG.md`](https://github.com/ClickHouse/clickhouse-js/blob/main/packages/client-node/CHANGELOG.md).\n\n## Contact us\n\nIf you have any questions or need help, feel free to reach out to us in the\n[Community Slack](https://clickhouse.com/slack) (`#clickhouse-js` channel) or\nvia [GitHub issues](https://github.com/ClickHouse/clickhouse-js/issues).\n\n## License\n\n[Apache 2.0](https://github.com/ClickHouse/clickhouse-js/blob/main/LICENSE)\n","publish_time":1663232079728,"_cnpm_publish_time":1663232079728,"dist-tags":{"faster_exception_detection":"0.100.1","head":"1.25.0-head.bfd729c.1","latest":"1.25.0"}}