Content pfp
Content
@
0 reply
0 recast
2 reactions

Greg pfp
Greg
@greg
Anybody using Cloudflare D1 in prod yet? Seems cheaper and faster than any other hosted db It’s designed to be used in Workers but you can build a wrapper like this https://github.com/elithrar/http-api-d1-example Maybe somebody should build a more comprehensive wrapper with a Kysely adapter 🤔
4 replies
4 recasts
37 reactions

Haole pfp
Haole
@haole
why not drizzle? It has good D1 support
1 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
no specific reason, ive just been a longish time kysely fan looks like drizzle supports d1 only in workers like kysely anyways
1 reply
0 recast
0 reaction

Haole pfp
Haole
@haole
https://orm.drizzle.team/learn/guides/d1-http-with-drizzle-kit check this?
1 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
oh interesting a couple comments in forums seem to suggest that building a custom wrapper API as a worker would be more performant than Cloudflare's admin APIs for some reason but 🤷‍♂️ https://www.reddit.com/r/CloudFlare/comments/1c2a7im/is_d1_rest_api_performant_and_production_ready/ ty for sharing!
1 reply
0 recast
0 reaction

Haole pfp
Haole
@haole
yeah, actually I don’t like D1, use https://turso.tech for small projects instead.
0 reply
0 recast
0 reaction