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

Miniflare 3 D1 testing

Some of the discussion actually reminded me of a question I have had since wrangler3/miniflare3 came out. With those old miniflare packages (https://www.npmjs.com/package/@miniflare/d1) when in a test environment, you could write code that would simulate d1 in the following way ``` import { D1Database, D1DatabaseAPI } from "@miniflare/d1"; import { drizzle } from "drizzle-orm/d1";...

D1 Community Feedback Thread (June 2023)

Hey there! It's feedback time! 😄 We would love to hear from you. What features do you wish D1 had? 🌟 And what's your biggest challenge or frustration when using D1?

Better to post it here we can t formally

Better to post it here: we can't formally/directly support folks via DM, but others may be able to help 🙂

Getting D1 Error `Expression tree is too

Getting D1 Error: Expression tree is too large (maximum depth 20)

NULL bindings coercing to a String

Hi, Would love a simple confirmation. With the new backend, inserting a null value inserts a 'null' (string) value. The same code was working fine with the old backend.

Drizzle / ORM improvements

considering .all doesn't do any remapping, and both .all and .raw call the same /query endpoint - maybe using .all is the fix?

null response to queries

Ok, I'll DM you, I don't know my account ID

I am accessing d1 within a durable

I am accessing d1 within a durable object alarm and getting some unknown error: ``` { "message": [ "error with alarm",...

I don t know of any sqlite aaS services

I don't know of any sqlite-aaS services tbh - fly.io has LiteFS (https://fly.io/docs/litefs/), but similar situation to D1:
LiteFS is currently in beta and is not recommended for production use yet....

Also wrangler is slowly moving away from

Also wrangler is slowly moving away from using React to render things to the terminal (in favour of libraries that support a lack of raw mode), so parsing the Table might break soon

This is now fixed in the API wrangler

This is now fixed in the API & wrangler too

Wow thank you for this fast answer 😊

Wow thank you for this fast answer 😊

D1 Access Error

Can you try logging out then back in?

The team approves new users as they need

The team approves new users as they need them

I believe IPs are no longer PII per a

I believe IPs are no longer PII, per a case in Germany, which should be enforceable EU-wide

D1 Web Console

This is a great idea! Let me look into this.