@founderpath/kysely-clickhouse
v1.6.1
Published
Clickhouse Dialect for Kysely
Downloads
4,042
Readme
@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() });