clickhouze
天真的Clickhouse客户端
安装
npm i clickhouze
用法
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