šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

@founderpath/kysely-clickhouse

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@founderpath/kysely-clickhouse

Clickhouse Dialect for Kysely

1.7.0
latest
Source
npm
Version published
Weekly downloads
5.1K
18.94%
Maintainers
1
Weekly downloads
Ā 
Created
Source

@founderpath/kysely-clickhouse

Kysely adapter for Clickhouse.

npm i @clickhouse/client @founderpath/kysely-clickhouse

This project was largely adapted from kysely-planetscale. It's a barebone version, there's a lot of improvements that can be done here.

Usage

Pass your Clickhouse connection options into the dialect in order to configure the Kysely client. Follow these docs for instructions on how to do so.

import { Kysely } from 'kysely';
import { ClickhouseDialect } from '@founderpath/kysely-clickhouse';

interface SomeTable {
  key: string;
  value: string;
}

interface Database {
  some_datasets.some_table: SomeTable
}

const db = new Kysely<Database>({ dialect: new ClickhouseDialect() });

Keywords

kysely

FAQs

Package last updated on 15 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts