A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Clickhouse module for Nest based on the official clickhouse package.
$ npm i --save @nestjs/clickhouse clickhouse
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) {}
}
The ClickhouseService
exposes native clickhouse methods and wraps them in the Observable.
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.
Nest is MIT licensed.