D1
d1
Domain types
Database
d1.database
Methods
Returns the created D1 database.
Deletes the specified D1 database.
Returns a URL where the SQL contents of your D1 can be downloaded. Note: this process may take some time for larger DBs, during which your D1 will be unavailable to serve queries. To avoid blocking your DB unnecessarily, an in-progress export must be continually polled or will automatically cancel.
Returns the specified D1 database.
Generates a temporary URL for uploading an SQL file to, then instructing the D1 to import it and polling it for status updates. Imports block the D1 for their duration.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Account identifier tag.
Whether the API call was successful
Returns a list of D1 databases.
Returns the query result as an object.
Returns the query result rows as arrays rather than objects. This is a performance-optimized version of the /query endpoint.
Domain types