๐ help When I execute the command "npx wrangler d1 backup create my-database-name" to backup the D1
When I execute the command "npx wrangler d1 backup create my-database-name" to backup the D1 database, an error occurs.
# npx wrangler d1 backup create my-database-name
โ [ERROR] A request to the Cloudflare API (/accounts/xxxxxxxxxx/d1/database/xxxx-xxxx-xxxx-xxxx-xxxx/backup) failed.
The request is malformed: Experimental DBs do not support backups yet:
xxxx-xxxx-xxxx-xxxx-xxxx (v3) [code: 7400]
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
request.url has the URL. I'd suggest reading the MDN docs on how to parse URLs (https://developer.mozilla.org/en-US/docs/Web/API/URL) and/or moving over to #workers-help for non-D1 specific questions

9/11/23, 2:36 PM

RETURNINGexport default {
async fetch(request, env, ctx) {
const res = await env.DB.prepare('SELECT 1;').all()
return new Response(JSON.stringify(res, null, 2));
},
};{
....
"results": [
{
"1": 1
}
]
}request.urlRETURNINGError: D1_ERROR: Error: SQL execute error: Execute returned results - did you mean to call query?const d1_lookup_code = await c.env.DB.prepare(`SELECT id, program, details FROM my_codes WHERE code = ?`).bind(code).first();
await c.env.DB.prepare(`DELETE FROM my_codes WHERE code = ?`).bind(code).run();await c.env.DB.prepare(`DELETE FROM my_codes WHERE code = ? RETURNING *`).bind(code).run()await c.env.DB.prepare(`DELETE FROM my_codes WHERE code = ? RETURNING *`).bind(code).first()