AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

cloudflare

Discover and choose Cloudflare products for apps, APIs, AI agents, storage, networking, and security. Use for architecture and product selection, including when the user describes a need without naming a Cloudflare product; then find the relevant skill or documentation.

Original source
cloudflare
License
Apache-2.0
Pinned revision
e44f580f9c4fa3bf268e284ae7706c7954ba31fd

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read cloudflare--cloudflare at revision e44f580f9c4fa3bf268e284ae7706c7954ba31fd, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 135

references/d1/gotchas.md

D1 Gotchas & Troubleshooting

Use current documentation to diagnose the failure before changing query or database configuration.

| Symptom or question | What to check | | --- | --- | | Missing table, query exception, or constraint error | Debug D1; verify the target binding, environment, and applied migrations | | Boolean, date, or other binding type mismatch | Workers Binding API type conversion and SQL support | | Foreign key failure during writes or migrations | Foreign key enforcement and deferral | | Slow or expensive database, excessive rows read or written, or finding which databases and queries cost the most | Find slow and expensive queries with cf sql query or wrangler d1 insights (API tokens need Account Analytics Read); then indexes and query plans | | Query duration, statement, storage, or account limits | Current limits | | Unexpected usage charges or plan assumptions | Pricing; find the databases and queries that cost the most | | Stale reads after a write | Sessions, bookmarks, and read replication | | Transient query failures | Retry guidance; check idempotency before retrying writes | | Import/export failure or unsupported data | Import/export behavior and limitations | | Local and deployed databases differ | Local development and environment configuration |

Continue to bind untrusted SQL values as described in api.md. Do not treat SQL injection as a recoverable database error or assume retries correct invalid queries.