freaked me out because i was actively making changes and thought i purged my entire DB accidentally.
freaked me out because i was actively making changes and thought i purged my entire DB accidentally. so i restored and lost some data. T_T


batch() function, though, if that fits your use-case.
Writing to columns referenced in an index will add at least one additional row written to account for updating the index.




batch()wg d1 list
⛅️ wrangler 4.20.5
───────────────────
✘ [ERROR] A request to the Cloudflare API (/accounts/:id/d1/database) failed.
Authentication error [code: 10000]
Getting User settings...
👋 You are logged in with an OAuth Token, associated with the email .
┌───────────────────────────────────┬──────────────────────────────────┐
│ Account Name │ Account ID │
├───────────────────────────────────┼──────────────────────────────────┤
│ Account Name │ Account ID │
└───────────────────────────────────┴──────────────────────────────────┘
🔓 Token Permissions: If scopes are missing, you may need to logout and re-login.
Scope (Access)
- account (read)
- user (read)
- workers (write)
- workers_kv (write)
- workers_routes (write)
- workers_scripts (write)
- workers_tail (read)
- d1 (write)
- pages (write)
- zone (read)
- ssl_certs (write)
- ai (write)
- queues (write)
- pipelines (write)
- secrets_store (write)
- offline_access
🎢 Membership roles in "EMAIL": Contact account super admin to change your permissions.
- Super Administrator - All Privileges