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
- Host: GitHub
- URL: https://github.com/jill64/kysely-d1-external
- Owner: jill64
- License: mit
- Created: 2024-03-23T18:42:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-18T19:01:24.000Z (6 months ago)
- Last Synced: 2025-04-19T07:42:41.421Z (6 months ago)
- Topics: cloudflare, d1, external, fetch, kysely
- Language: TypeScript
- Homepage: https://npmjs.com/package/kysely-d1-external
- Size: 324 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kysely-d1-external
🌤️ 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)