clickhouze
v0.3.6
Published
Naive clickhouse client wrapper
Downloads
3
Readme
clickhouze
Naive clickhouse client
Installation
npm i clickhouze
Usage
const client = require('clickhouze')({
host: '127.0.0.1',
port: 8123,
})
client.insert('events', { category: 'a', tag1: '2', tag2: '3' })
.then(() => console.log('inserted'))
client.query('select count() from events')
.then(result => console.log(result))
client.batchInsert('events', [{ a: 1 }, { a: 2 }, { a: 3 }])