{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Generate a temporary URL for uploading an SQL file to, then instruct the D1 to import it\nand poll it for status updates. Imports block the D1 for their duration.\n","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/d1_account-identifier"},"database_id":{"$ref":"#/definitions/d1_database-identifier"}},"required":["account_id","database_id"],"additionalProperties":false},"body":{"oneOf":[{"properties":{"action":{"description":"Indicates you have a new SQL file to upload.","type":"string","enum":["init"]},"etag":{"description":"Required when action is 'init' or 'ingest'. An md5 hash of the file you're uploading. Used to check if it already exists, and validate its contents before ingesting.","type":"string"}},"required":["action","etag"],"title":"init","type":"object"},{"properties":{"action":{"description":"Indicates you've finished uploading to tell the D1 to start consuming it","type":"string","enum":["ingest"]},"etag":{"description":"An md5 hash of the file you're uploading. Used to check if it already exists, and validate its contents before ingesting.","type":"string"},"filename":{"description":"The filename you have successfully uploaded.","type":"string"}},"required":["action","etag","filename"],"title":"ingest","type":"object"},{"properties":{"action":{"description":"Indicates you've finished uploading to tell the D1 to start consuming it","type":"string","enum":["poll"]},"current_bookmark":{"description":"This identifies the currently-running import, checking its status.","type":"string"}},"required":["action","current_bookmark"],"title":"poll","type":"object"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"d1_account-identifier":{"description":"Account identifier tag.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"d1_database-identifier":{"description":"D1 database identifier (UUID).","type":"string","examples":["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}}},"name":"Import SQL into your D1 Database","id":"cloudflare.d1-import-database","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","database_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},"body":{"action":"init","etag":"example"}},"maxRequests":1,"summary":false}}