just gonna bump this here in case folks missed it
just gonna bump this here in case folks missed it






wrangler.toml. Repeat the [[d1_databases]] section for each of your databases. That's defining an array, and each time you use it, it's an item in that array. The newer wrangler.json format makes that a bit easier to really understand though if you are not familiar with TOML syntax.

wrangler.toml[[d1_databases]]wrangler.json[[d1_databases]]
binding = "DB_01"
database_name = "db-01"
database_id = "<unique-ID-for-your-database>"
[[d1_databases]]
binding = "DB_02"
database_name = "db-02"
database_id = "<unique-ID-for-your-database>"