{"repo":"depyronick/nestjs-clickhouse","free":true,"listed":false,"github":"https://github.com/depyronick/nestjs-clickhouse","clone":"git clone https://github.com/depyronick/nestjs-clickhouse.git","description":"ClickHouse Client Module for Nest Framework (node.js)","language":"TypeScript","stars":55,"topics":["nodejs","javascript","typescript","sql","nosql","clickhouse","clickhouse-client","nestjs"],"license":"MIT","category":"databases-storage","readme_excerpt":"Description ClickHouse® is an open-source, high performance columnar OLAP database management system for real-time analytics using SQL. ClickHouse combined with TypeScript helps you develop better type safety with your ClickHouse queries, giving you end-to-end typing. Installation Install the following package: Quick Start This NestJS module is a wrapper for @depyronick/clickhouse-client . You can find latest documentation for methods there. Importing the module Once the installation process is complete, we can import the ClickHouseModule into the root AppModule . The register() method will register a ClickHouse client with the specified connection options. See ClickHouseOptions object for more information. Each registered client should have an unique name definition. The default value for name property is CLICKHOUSE DEFAULT . This property will be used as an injection token. Interacting with ClickHouse Client To interact with the ClickHouse server that you have just registered, inject it to your class using the injection token. The ClickHouseClient class is imported from the @depyronick/nestjs-clickhouse . Examples ⚠️ These are only a few examples, please see @depyronick/clickhouse-client for up to date methods, like Parametrized Query Capabilities . ClickHouseClient.query (query: string): Observable ClickHouseClient.queryPromise (query: string): Promise ClickHouseClient.insert (table: string, data: T[]): Observable The insert method accepts two inputs. - table is the name o","default_branch":null,"files":null,"tree":[],"storefront":"/r/depyronick","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/depyronick/nestjs-clickhouse/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}