@watchdg/clickhouse-client
TypeScript icon, indicating that this package has built-in type declarations

1.16.0 • Public • Published

clickhouse-client

nodejs clickhouse client

Install

yarn add @watchdg/clickhouse-client
# or
npm install @watchdg/clickhouse-client

How to use

import {ClickhouseClient} from '@watchdg/clickhouse-client';

(async function () {
    const clickhouseClient = new ClickhouseClient();
    const {rows, data} = await clickhouseClient.query('select 1');
    console.log(data);
})();

Supported formats

  • TabSeparated (TSV)
  • TabSeparatedRaw (TSVRaw)
  • TabSeparatedWithNames (TSVWithNames)
  • TabSeparatedWithNamesAndTypes (TSVWithNamesAndTypes)

Supported types

Clickhouse NodeJS
Int8 Number
Int16 Number
Int32 Number
UInt8 Number
UInt16 Number
UInt32 Number
Float32 Number
Float64 Number
Int64 BigInt
Int128 BigInt
Int256 BigInt
UInt64 BigInt
UInt128 BigInt
UInt256 BigInt
Bool Boolean
DateTime Date
String String
UUID String
IPv4 String
IPv6 String
  • Nullable(T)
  • Array(T)

Package Sidebar

Install

npm i @watchdg/clickhouse-client

Weekly Downloads

1

Version

1.16.0

License

MIT

Unpacked Size

25.5 kB

Total Files

7

Last publish

Collaborators

  • watchdg