Skip to main content

d1_database_name

Function d1_database_name 

Source
pub fn d1_database_name(worker: &str, binding: &str) -> String
Expand description

P4a (#2602): the account-facing name of a D1 instance’s database, <worker>-<capability, kebab>: shop-cart and D1_ORDERS give shop-cart-orders. D1 database names are scoped to the account, as R2 bucket names are. bynk deploy environment-qualifies it.