Actions25
- Database Actions
- Memory Actions
- Query Actions
- Query Builder Actions
- Table Actions
- Table Management Actions
Database → Import Database
AI-generatedSummary
Import a SQL dump into a Cloudflare D1 database, replacing existing data.
Inputs
- databaseId (required) — The unique identifier of the Cloudflare D1 database to import into.
- importSql (required) — The SQL content to import, typically containing CREATE and INSERT statements.
Output shape
an object with a success flag and metadata (no regular payload)
The operation signals success via the response metadata; the database becomes unavailable during import.
Examples
Example 1: Replace a database's contents with a new schema and data
Database ID: my_database; SQL Content: CREATE TABLE ...; INSERT INTO ...