logoalt Hacker News

dom96last Thursday at 9:52 AM2 repliesview on HN

(I work at Cloudflare, but not on D1)

I believe this is possible, you can create D1 databases[1] using Cloudflare's APIs and then deploy a worker using the API as well[2].

1 - https://developers.cloudflare.com/api/resources/d1/subresour...

2 - https://developers.cloudflare.com/api/resources/workers/subr...


Replies

wg0last Thursday at 10:11 AM

Thank you! That's great and it is possible but... With some limitations.

The idea is from sign up form to a D1 Database that can be accessed from the worker itself.

That's not possible without updating worker bindings like you showed and further - there is an upper limit of 5000 bindings per worker and just 5000 users then becomes the upper limit although D1 allows 50,000 databases easily with further possible by requesting a limit increase.

edit: Missed opening.

ewuhiclast Thursday at 11:59 AM

Hey, would you happen to know if/when D1 can get support for ICU (https://sqlite.org/src/dir/ext/icu) and transactions?

show 1 reply