Cloudflare D1 icon

Cloudflare D1

Execute operations against Cloudflare D1 serverless databases. Supports structured operations (Insert, Select, Update, Delete), raw SQL queries, and can be used as a tool by AI Agents.

Database → Export Database

AI-generated

Summary

Exports the selected Cloudflare D1 database as a SQL dump.

Inputs

  • databaseId (required) — The unique identifier of the D1 database to export.

Output shape

A JSON object containing the exported SQL content and status information.

The exact shape depends on the implementation; typically includes a success flag and the SQL dump string.

Examples

Example 1: Export a database with ID abc123

databaseId: abc123, operation: Export Database

Discussion