GitHub - windwp/kysely-zod-sqlite: An fl...
i use my library to unit test on local with better sqlite https://github.com/windwp/kysely-zod-sqlite
GitHub
GitHub - windwp/kysely-zod-sqlite: An flexible api for Cloudflare D...
An flexible api for Cloudflare D1 and sqlite. It has an simple api of Prisma and a powerful query with Kysely. - GitHub - windwp/kysely-zod-sqlite: An flexible api for Cloudflare D1 and sqlite. It ...
6 Replies
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
do we know if it is at all possible to connect to it via TCPTo D1? Nope
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
The only way of access outside of a Worker or the HTTP API, for local testing, is using Miniflare rather than Wrangler's unstable_dev so you can call the binding there - https://github.com/cloudflare/miniflare/blob/tre/packages/miniflare/README.md#class-miniflare
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
hey on my unit test i use better-sqlite driver on memory. it run fast https://github.com/windwp/kysely-zod-sqlite/blob/dcd6b9f2bbe880e5fa645884e39f85cc4d7c4820/tests/sharedTest.ts#L12
My app offer a selfhosted version so i need a different way to connect and it should not depend on miniflare or wrangler
miniflare underthe hood it still
use better-sqlite and create db file on .wrangler/db/local
GitHub
kysely-zod-sqlite/tests/sharedTest.ts at dcd6b9f2bbe880e5fa645884e3...
An flexible api for Cloudflare D1 and sqlite. It has an simple api of Prisma and a powerful query with Kysely. - windwp/kysely-zod-sqlite