node-clickhouze

0.5.7 • Public • Published

clickhouze

Naive clickhouse client

Installation

npm i node-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 }])

Readme

Keywords

none

Package Sidebar

Install

npm i node-clickhouze

Weekly Downloads

0

Version

0.5.7

License

ISC

Unpacked Size

4.26 kB

Total Files

5

Last publish

Collaborators

  • skarbovskiy