kysely-d1-external
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm i kysely-d1-external

Usage

import { D1ExternalDialect } from 'kysely-d1-external'
import { Kysely } from 'kysely'
import { fetch } from 'undici'

const db = new Kysely<Database>({
  dialect: new D1ExternalDialect({
    accountId: 'YOUR_CLOUDFLARE_ACCOUNT_ID',
    apiKey: 'YOUR_CLOUDFLARE_API_KEY',
    databaseUuid: 'YOUR_DATABASE_UUID'
  })
})

Package Sidebar

Install

npm i kysely-d1-external

Weekly Downloads

363

Version

1.0.2

License

none

Unpacked Size

4.99 kB

Total Files

4

Last publish

Collaborators

  • jill64