Title: Feature Request: First-class support for multiple D1 databases · Issue #746 · voidzero-dev/void · GitHub
Open Graph Title: Feature Request: First-class support for multiple D1 databases · Issue #746 · voidzero-dev/void
X Title: Feature Request: First-class support for multiple D1 databases · Issue #746 · voidzero-dev/void
Description: Build with Vite. Deploy with Void. Contribute to voidzero-dev/void development by creating an account on GitHub.
Open Graph Description: Build with Vite. Deploy with Void. Contribute to voidzero-dev/void development by creating an account on GitHub.
X Description: Build with Vite. Deploy with Void. Contribute to voidzero-dev/void development by creating an account on GitHub.
Opengraph URL: https://github.com/voidzero-dev/void
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: First-class support for multiple D1 databases","articleBody":"Hello! It would be great to have better support for multiple Cloudflare D1 databases in Void.\n\nAccording to [[Cloudflare's documentation](https://developers.cloudflare.com/d1/platform/limits/)](https://developers.cloudflare.com/d1/platform/limits/), D1 is designed to scale horizontally across multiple smaller databases. Sharding and splitting data across databases help work around limitations such as the 10 GB database size limit and single-threaded query execution.\n\nVoid already supports connecting to additional D1 databases through `createDb()`, but schema management and migrations seem to be built around a single database.\n\nIt would be nice to define multiple databases in `void.config.ts`, each with its own schema and migrations:\n\n```ts\nexport default defineConfig({\n databases: {\n app: {\n binding: 'DB',\n schema: './db/app/schema.ts',\n migrationsDir: './db/app/migrations',\n },\n catalog: {\n binding: 'CATALOG_DB',\n schema: './db/catalog/schema.ts',\n migrationsDir: './db/catalog/migrations',\n },\n },\n});\n```\n\nThe CLI could then support selecting a specific database:\n\n```bash\nvoid db generate --database catalog\nvoid db migrate --database catalog\nvoid db push --database catalog\n```\n\nIdeally, this would also include properly typed Drizzle clients for each database and an easy way to apply the same migrations across multiple databases when sharding.\n\nOf course, existing single-database projects should continue working without any changes.\n\nSince using multiple databases is part of Cloudflare's recommended scaling approach for D1, I think having first-class support for it would be a great addition to Void.\n\nWould this be something you'd consider supporting?","author":{"url":"https://github.com/aulikhin","@type":"Person","name":"aulikhin"},"datePublished":"2026-11-08T06:34:29Z","url":"https://github.com/voidzero-dev/void/issues/746"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:6793c4c2-41e8-8ec9-bdd5-92cd948ac5b0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86A2:D8EF4:49A2A:64FA3:6AFBA51E |
| html-safe-nonce | fe778d4120e09d336c980e2199f0fa0f4697b363b63b993d4f51376381c381ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkEyOkQ4RUY0OjQ5QTJBOjY0RkEzOjZBRkJBNTFFIiwidmlzaXRvcl9pZCI6IjkwNjUxMTA0Mzk0ODE1NTAxMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 89149d916654c24aa8478a9e578d952121ec17f6c7edba17ba4ecfcd02235851 |
| hovercard-subject-tag | repository:1164437080 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/voidzero-dev/void/issues/746 |
| twitter:image | https://opengraph.githubassets.com/2133fd2ae2b74b5353447938f20a1d1694adcff1dd6b3b2537b223a2fa294def/voidzero-dev/void |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2133fd2ae2b74b5353447938f20a1d1694adcff1dd6b3b2537b223a2fa294def/voidzero-dev/void |
| og:image:alt | Build with Vite. Deploy with Void. Contribute to voidzero-dev/void development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 03e5090f0cea887cafa036e3af34d7c668d83b5e9e9e03df72a90efb49b69cdf |
| turbo-cache-control | no-cache |
| go-import | github.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git |
| octolytics-dimension-user_id | 149750581 |
| octolytics-dimension-user_login | voidzero-dev |
| octolytics-dimension-repository_id | 1164437080 |
| octolytics-dimension-repository_nwo | voidzero-dev/void |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1164437080 |
| octolytics-dimension-repository_network_root_nwo | voidzero-dev/void |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 41f00295b9a35dca977890ab83b22788ab211dc8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width