Cloudflare/d1
@webframp/cloudflare/d1v2026.07.19.1
01README
Cloudflare D1 serverless SQL databases — databases, queries
02Release Notes
2026.07.19.1
Added: Initial code-generated release of @webframp/cloudflare/d1 with 12 methods covering the Cloudflare d1 API surface.
03Models
@webframp/cloudflare/d1v2026.07.19.1cloudflare/d1.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token |
| accountId | string | Cloudflare account ID |
fn list_databases(name?: string, page?: number, per_page?: number)
List D1 Databases
| Argument | Type | Description |
|---|---|---|
| name? | string | |
| page? | number | |
| per_page? | number |
fn create_database(jurisdiction?: unknown, name: unknown, primary_location_hint?: unknown, read_replication?: unknown)
Create D1 Database
| Argument | Type | Description |
|---|---|---|
| jurisdiction? | unknown | |
| name | unknown | |
| primary_location_hint? | unknown | |
| read_replication? | unknown |
fn get_database(database_id: string, fields?: string)
Get D1 Database
| Argument | Type | Description |
|---|---|---|
| database_id | string | |
| fields? | string | Comma-separated list of fields to include in the response. When omitted, all fields are returned. |
fn update_database(database_id: string, read_replication: unknown)
Update D1 Database
| Argument | Type | Description |
|---|---|---|
| database_id | string | |
| read_replication | unknown |
fn update_partial_database(database_id: string, read_replication?: unknown)
Update D1 Database partially
| Argument | Type | Description |
|---|---|---|
| database_id | string | |
| read_replication? | unknown |
fn delete_database(database_id: string)
Delete D1 Database
| Argument | Type | Description |
|---|---|---|
| database_id | string |
fn create_d1_export_database(database_id: string, current_bookmark?: string, dump_options?: object, output_format: enum)
Export D1 Database as SQL
| Argument | Type | Description |
|---|---|---|
| database_id | string | |
| current_bookmark? | string | |
| dump_options? | object | |
| output_format | enum | Specifies that you will poll this endpoint until the export completes |
fn d1_import_database(database_id: string)
Import SQL into your D1 Database
| Argument | Type | Description |
|---|---|---|
| database_id | string |
fn d1_query_database(database_id: string)
Query D1 Database
| Argument | Type | Description |
|---|---|---|
| database_id | string |
fn d1_raw_database_query(database_id: string)
Raw D1 Database query
| Argument | Type | Description |
|---|---|---|
| database_id | string |
fn get_bookmark(database_id: string, timestamp?: string)
Get D1 database bookmark
| Argument | Type | Description |
|---|---|---|
| database_id | string | |
| timestamp? | string | An optional ISO 8601 timestamp. If provided, returns the nearest available bookmark at or before this timestamp. If omitted, returns the current bookmark. |
fn d1_time_travel_restore(database_id: string, bookmark?: string, timestamp?: string)
Restore D1 Database to a bookmark or point in time
| Argument | Type | Description |
|---|---|---|
| database_id | string | |
| bookmark? | string | A bookmark to restore the database to. Required if `timestamp` is not provided. |
| timestamp? | string | An ISO 8601 timestamp to restore the database to. Required if `bookmark` is not provided. |
Resources
databases(infinite)— List D1 Databases
database(infinite)— Create D1 Database
partial_database(infinite)— Update D1 Database partially
d1_export_database(infinite)— Export D1 Database as SQL
d1_import_database(infinite)— Import SQL into your D1 Database
d1_query_database(infinite)— Query D1 Database
d1_raw_database_query(infinite)— Raw D1 Database query
bookmark(infinite)— Get D1 database bookmark
d1_time_travel_restore(infinite)— Restore D1 Database to a bookmark or point in time
04Stats
A
100 / 100
Downloads
0
Archive size
8.7 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms
06Labels