@maktouch/kysely-bigquery
v1.0.3
Published
BigQuery Dialect for Kysely
Downloads
595
Readme
@maktouch/kysely-bigquery
npm i @google-cloud/bigquery @maktouch/kysely-bigquery
This project was largely adapted from kysely-planetscale.
Usage
Pass your BigQuery 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 { BigQueryDialect } from '@maktouch/kysely-bigquery';
interface SomeTable {
key: string;
value: string;
}
interface Database {
some_datasets.some_table: SomeTable
}
const db = new Kysely<Database>({ dialect: new BigQueryDialect() });