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

What is your query A SELECT isn’t

What is your query? A SELECT isn’t guaranteed to be not write rows.

Sure

Sure. Account ID: cfd355bcff7e6af6838743ae944184b0 DB ID: e707d84e-7dd9-4c4b-940a-63ea75a981fb And some extras: Ray ID of a failed request: 7ecd59bfdc728ec8, timestamps are 1690381931502 (request) and 1690381936556 (D1 error)...

Or Pages functions but yeah if you use

Or Pages functions, but yeah, if you use the adapter correctly.

well anyways there’s a drizzle discord

well anyways there’s a drizzle discord

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?