An open API service indexing awesome lists of open source software.

https://github.com/jill64/kysely-d1-external

🌤️ Kysely D1 Dialect for external fetch
https://github.com/jill64/kysely-d1-external

cloudflare d1 external fetch kysely

Last synced: 6 months ago
JSON representation

🌤️ Kysely D1 Dialect for external fetch

Awesome Lists containing this project

README

          

# kysely-d1-external

npm-version npm-license npm-download-month npm-min-size

🌤️ Kysely D1 Dialect for external fetch

## Installation

```sh
npm i kysely-d1-external
```

## Usage

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

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

## License

[MIT](LICENSE)