You can have multiple D1 bindings in your `wrangler.toml`. Repeat the `[[d1_databases]]` section for

You can have multiple D1 bindings in your
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.

Example:
[[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>"
Was this page helpful?