1.0.1 • Published 2 months ago
kysely-d1-external v1.0.1
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'
})
})