Clickhouse Dialect for Kysely
npm install @founderpath/kysely-clickhouseKysely adapter for Clickhouse.
``bash`
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.
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.
`typescript
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
``