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

For larger databases, Hyperdrive is

For larger databases, Hyperdrive is probably going to be a better fit: https://developers.cloudflare.com/hyperdrive/

1. That is the limit in beta, but it

1. That is the limit in beta, but it will go up. The base included in workers paid is 5gb, then charged every gig after. Up in this thread https://discord.com/channels/595317990191398933/992060581832032316/1190019895254069258 Matt mentioned about a (currently TBA, but planned for an eventual) >100GB limit

Deploy a Next.js site Ā· Cloudflare Pages...

I'm using Next.js created with create-next-app. When I start Next with commands like yarn dev, I want to use a local D1 created with npx wrangler d1 somecommand --local in api/foo/bar/route.ts. However, even after referring to the following page, I can't seem to bind it properly in my local environment. https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/#use-bindings-in-your-nextjs-application Is this an issue unique to my environment? Is there any way to fix this?...

Next.js on Cloudflare with D1?

Hey, everyone. I am working through the Next.js tutorial. I am trying to set it up on Cloudflare Pages. I am at a step where I need to hook up a database. (I'll turn this into a thread and then ask my question.)

if i have an array of primary keys, how

if i have an array of primary keys, how do i search using IN? will this work? or do i need to format the array to a comma delimited string? const { results: usersFromUserIds } = await this.env.DB.prepare( SELECT *...

hey guys im a beginner and am trying to

hey guys im a beginner and am trying to build an animal fact app for my kids im trying to use D1 database to store the animal names, facts, image url (to R3 bucket public link) my issue is that I can't for the life of me figure out how to interact with the D1 database in my page or html/js https://javascript-website.pages.dev/ it's still a while away from something semi decent, i figured it out with python locally but now im trying to turn it into JS and deploy it online with cloudflare because of the D1 integration it has. Thanks in advance!...
No description

@TigersWay Retry is definitely

@TigersWay Retry is definitely recommended but I'd like to understand more about your workload when you see these errors? Are these long-running queries?

How do you get the primary key of the

How do you get the primary key of the row that got inserted?

greetings! is there a way to import JSON

greetings! is there a way to import JSON collections from mongodb into D1?

I started getting a weird error with one

I started getting a weird error with one of my inserts. This is a new problem, the code didn't change in months but, all of the sudden I get " Internal error in D1 storage caused object to be reset". Anybody has any idea how to fix this?

`D1 storage operation exceeded timeout

D1 storage operation exceeded timeout which caused object to be reset fires when a query takes too long to run (which I believe is 30 seconds, let me double check that) - adding an index to your query should help bring it down

Hey im getting this error 'binding DB of

Hey im getting this error 'binding DB of type d1 must have a valid id specified [code: 10021]' when trying to run wrangler dev --remote, I have my binding setup with a preview_database_id as well!?

Are you running locally?

Are you running locally?

I'm not sure about this but is there a

I'm not sure about this but is there a way which with I can use d1 with a wordpress website?

It's definitely being worked on or

It's definitely being worked on or planned internally but we don't really have a way to track externally

can I have a look at the toml file also

can I have a look at the toml file? also, are you using pages or workers?

forkable project with d1

heya, good folks of d1! I'm currently building a project on cloudflare workers+pages+d1 that I'd like to be forkable. So the ideal workflow for the users is: 1. fork the repo of my deployed solution 2. set things up...

rows written = 0?

Since today rows_written and rows_read is always 0 and the sql action wont get executed when running with "EXPLAIN QUERY PLAN". I have changed nothing in my code and it worked perfectly fine 2 days ago. Anyone else experiencing this?