Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

embeddinglayer/fastify-clickhouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

Fastify ClickHouse

A Fastify plugin that simplifies access to the ClickHouse client.

Code rewritten from Fastify Prisma plugin to instead use the ClickHouse client.

Installation

NPM

npm i fastify-clickhouse

Yarn

yarn add fastify-clickhouse

Usage

You can register it with the clickhouse client config

import fastifyClickHouse from 'fastify-clickhouse';
await server.register(fastifyClickHouse, {
 clientConfig: {
 url: 'localhost:8123',
 username: "USERNAME",
 password: "PASSWORD"
 }
});

Or pass a ClickHouse client instance

import { createClient } from '@clickhouse/client';
const clickhouse = await createClient({
 url: 'localhost:8123',
 username: "USERNAME",
 password: "PASSWORD"
});
server.register(fastifyClickHouse, clickhouse);

About

A Fastify Clickhouse Plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /