How to bind D1 databases dynamically #3564
Unanswered
luozhouyang
asked this question in
Q&A
Replies: 1 comment
-
The only way at the moment is to use the Workers API (https://developers.cloudflare.com/api/resources/workers/subresources/scripts/methods/update/) with a new worker configuration with the updated D1 bindings. We have some plans to make it easier, but no concrete ETAs yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to build a SaaS application where each tenant has their own d1 database instances. The question is workers' bindings are configured on
wrangler.toml
statically, is there any way to bind these d1 database instances dynamically so that I can dispatch request to tenant's own database dynamically.Beta Was this translation helpful? Give feedback.
All reactions