kysely-d1 icon indicating copy to clipboard operation
kysely-d1 copied to clipboard

Add API Dialect

Open tom-sherman opened this issue 3 years ago • 8 comments

  • [x] I have verified my changes didn't break the example project.

Description

Closes #7

This PR adds a new dialect that allows you to Kysely and D1 outside of cloudflare workers eg. in Deno and Node.

Note I'd recommend not squashing these changes as I've structured the commits to preserve the history/renaming of index.ts -> d1-dialect.ts

tom-sherman avatar Nov 21 '22 11:11 tom-sherman

@tom-sherman I'm thinking we should maybe consider closing this PR branch until there's official API support for this from Cloudflare.

We can keep an issue open to track this, if that works for you! 👍

aidenwallis avatar Nov 25 '22 00:11 aidenwallis

Did this API ever get documented?

aidenwallis avatar Jun 03 '23 00:06 aidenwallis

I think that it could be worthwhile adding this, even if the APIs aren't documented yet. In their Discord server, Cloudflare has committed to eventually documenting/stabilising the API and even endorse projects made around it such as this one: https://github.com/isaac-mcfadyen/d1-console

Accepting this pull request will allow for easier access for those who wish to experiment with it and enable anyone to submit maintenance changes for the feature in this project going forward.

adam-the avatar Aug 20 '23 14:08 adam-the