Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Hello y'all, i used d1 export for one of

Hello y'all, i ran d1 export for one of my databases and now it says Error in worker: Error: D1_ERROR: Currently processing a long-running export. and i'm not sure it's currently processing because it errored out on my terminal. Is there a way to cancel this process?

Durable Object Storage

This is so much clearer!! Would it be possible to maybe clarify the same for durable objects sql api? I’ve been trying to figure out if sql methods protect against sql injection https://developers.cloudflare.com/durable-objects/api/storage-api/#returns...

More specifically, if the write requests

More specifically, if the write requests are originating from a Queue, staggering the requests becomes more important.

small suggestion: there should be a pop

small suggestion: there should be a pop up warning if you try to leave d1 studio with unsaved edits

If you mean interleaving JavaScript code

If you mean interleaving JavaScript code and SQL within the same transaction, then not at the moment. You can execute multiple SQL queries in a single transaction using the batch() function, though, if that fits your use-case. Otherwise if you need a lot of JS mixed with SQL, using SQLite Durable Objects is more suitable....

Can you elaborate a bit on this one?

Can you elaborate a bit on this one? This doesn't sound like expected behavior.

Released an update today that removes

Released an update today that removes the "Tables" tab from your D1 instance and replaces it with a new "Explore Data" button at the top right to take you into our more fully featured SQL Studio to interact with your data. 🚀
No description

I suppose it isn't that simple to

I suppose it isn't that simple to enforce idempotency

I have one table in which I have auth

I have one table in which I have auth column when i query it into worker and fetch value in that column it gets converted in to **. what is this and how can I get actual value?
No description

love the new design and UX! One minor

love the new design and UX! One minor a11y comment about these: https://i.james.pub/file/2025/05/387f3575-9417-4610-a50c-c54484166e0f.png github/deploy are buttons that open new tabs so ideally should just be anchors so folks can middle click them and accessibility tooling understand what they do a little better :MeowHeartCloudflare:...

D1 UI feedback

hey all — brandon here (previously from Outerbase) we just shipped a new experience for D1 including our data studio. it's read only for now, but an editable experience is coming soon! would love to get your thoughts!...
No description

Seems like the only solution is to tell

Seems like the only solution is to tell our users we lost our data and never use cf again

Hey all, I saw @yusukebe's recent Hono

Hey all, I saw @yusukebe's recent Hono Vite template and wrote a prompt to add D1 (with drizzle), the prompt worked really well for me — would love to hear if it works for others too! https://ctxs.ai/weekly/d1-database-setup-for-classifieds-app-a0m502...

You need to provide us database IDs to

You need to provide us database IDs to be able to look anything for you. Also, some details on volume, queries, how much data are you returning each time, etc are helpful.
This is from the HKG PoP and with a D1 instance in APAC
APAC is a huge region and you could be 100-200ms away from your database unfortunately. Having said that anything more than a few hundreds of ms even in those cases is a bigger unexpected issue, either with the responses getting back to your worker or something else. ...

was anyone able to use Prisma + D1? My

was anyone able to use Prisma + D1? My app works locally but when I deploy it to Cloudflare i'm getting the error: fs.readdir is not implemented yet. Why would Prisma need access to the filesystem if it is configured to connect to D1? Its a real showstopper for me. I guess i will have to self-host the app if there is no solution.

status dashboard says no, but just for

status dashboard says no, but just for my sanity there's no known issue with d1 is there? getting sudden huge spikes in latency (47,000ms) for very simple requests which were fine previously ``` const findActivityStartTime = performance.now(); const activity = await prisma.activity.findFirst({...

This is good advice, but it’s not

This is good advice, but it’s not exactly the same as D1, for example time travel backups doesn’t exist for durable objects (afaik) and no API support

how do you make this work, are you

how do you make this work, are you deploying a worker inside the account to act as a proxy?
Next