Create a database
create_databaseProvision a SQL database — D1 (default, free) or Neon Postgres (--postgres, developer plan). Optionally attach it to an owned site's Worker env in the same call (siteSlug); otherwise attach it later with attach_database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | database name, a-z 0-9 -, 2-63 chars | |
| binding | No | Worker binding name, UPPER_SNAKE (defaults to a name derived from `name`) | |
| provider | No | defaults to d1 | |
| siteSlug | No | owned site slug to attach immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |