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
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
kian
kian9mo ago
do we know if it is at all possible to connect to it via TCP
To D1? Nope
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
kian
kian9mo ago
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
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
windwp
windwp9mo ago
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