@maktouch/kysely-bigquery
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@maktouch/kysely-bigquery

Kysely adapter for 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() });

Readme

Keywords

Package Sidebar

Install

npm i @maktouch/kysely-bigquery

Weekly Downloads

98

Version

1.0.3

License

MIT

Unpacked Size

10.6 kB

Total Files

12

Last publish

Collaborators

  • maktouch