D1
d1
Domain types
The details of the D1 database.
Database
d1.database
Methods
Returns a list of D1 databases.
Returns the specified D1 database.
Returns the created D1 database.
Updates the specified D1 database.
Updates partially the specified D1 database.
Deletes the specified D1 database.
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.
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.
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.
Domain types