Diffinery

homeflare/celldpublic

celld/examples/d1/wrangler.jsonc
16 lines · 534 BRaw History
1{
2 "name": "d1",
3 "main": "index.js",
4 "compatibility_date": "2026-01-01",
5 // The binding is the whole configuration: a D1 database is a cell of a class
6 // the runtime supplies, so there is no `durable_objects` or `migrations`
7 // entry. `database_name` addresses the cell. celld has no account to scope a
8 // `database_id` to, so it accepts the field and ignores it.
9 "d1_databases": [
10 {
11 "binding": "DB",
12 "database_name": "guestbook",
13 "database_id": "00000000-0000-0000-0000-000000000000"
14 }
15 ]
16}