flyhigh-hifi / nest-clickhouse

Clickhouse client module for nest framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Discord Backers on Open Collective Sponsors on Open Collective

Description

Clickhouse module for Nest based on the official clickhouse package.

Installation

$ npm i --save @nestjs/clickhouse clickhouse

Usage

Import ClickhouseModule:

@Module({
  imports: [ClickhouseModule.register({
    url: 'http://localhost',
    port: 8123,
    debug: false
  })],
  providers: [...],
})
export class AnalyticsModule {}

Inject ClickhouseService:

@Injectable()
export class AnalyticsService {
  constructor(private readonly analyticsService: ClickhouseService) {}
}

API Spec

The ClickhouseService exposes native clickhouse methods and wraps them in the Observable.

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

License

Nest is MIT licensed.

About

Clickhouse client module for nest framework


Languages

Language:TypeScript 94.2%Language:JavaScript 5.8%